Gamestudio Links
Zorro Links
Newest Posts
ZorroGPT
by TipmyPip. 04/23/26 14:23
Z9 getting Error 058
by k_ivan. 04/20/26 15:57
Stooq now requires an API key
by jcl. 04/13/26 09:42
Strange "Alien" Skull created with >Knubber<
by NeoDumont. 04/10/26 18:58
400 free seamless texture pack downl. here !
by NeoDumont. 04/08/26 19:55
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
1 registered members (TipmyPip), 3,119 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
valino, juergenwue, VladMak, Geir, ondrej
19209 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
easy noob question #318238
04/06/10 11:31
04/06/10 11:31
Joined: Dec 2009
Posts: 361
R
rtsgamer706 Offline OP
Senior Member
rtsgamer706  Offline OP
Senior Member
R

Joined: Dec 2009
Posts: 361
I am a programmer working with the free version of lite-c
I know this is a really silly question but I can't seem to figure it out.
How do I tell an entity thats already running an action to change to a new one?
Is it something like:

action name();

or

action name;

or something like that?
Thanks for the help
rtsgamer706

Re: easy noob question [Re: rtsgamer706] #318241
04/06/10 11:41
04/06/10 11:41
Joined: Jun 2006
Posts: 379
Flevoland, 5 meters under wate...
Roel Offline
Senior Member
Roel  Offline
Senior Member

Joined: Jun 2006
Posts: 379
Flevoland, 5 meters under wate...
in the action of the entity you just call the new action you want it to run
after some instructions it will run newaction
code:

action newaction()
{
.....
}

action oldaction()
{
.....
.....
.....
.....
newaction();
}

that should do the job


Check out the throwing game here: The throwing game
Re: easy noob question [Re: Roel] #318245
04/06/10 11:55
04/06/10 11:55
Joined: Dec 2009
Posts: 361
R
rtsgamer706 Offline OP
Senior Member
rtsgamer706  Offline OP
Senior Member
R

Joined: Dec 2009
Posts: 361
just says syntax error at line 51 (where my newaction(); line is)
did I do something wrong or...?
rtsgamer706

Re: easy noob question [Re: rtsgamer706] #318246
04/06/10 11:57
04/06/10 11:57
Joined: Dec 2009
Posts: 361
R
rtsgamer706 Offline OP
Senior Member
rtsgamer706  Offline OP
Senior Member
R

Joined: Dec 2009
Posts: 361
Forget it forget it.. it worked I just forgot a semicolon
the line before. It works now, thanks a lot..


Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1