Gamestudio Links
Zorro Links
Newest Posts
Zorro version 3.0 prerelease!
by Grant. 02/24/26 22:21
WFO Training with parallel cores Zorro64
by Martin_HH. 02/24/26 19:51
ZorroGPT
by TipmyPip. 02/23/26 21:52
Camera always moves upwards?
by clonman. 02/21/26 09:29
Sam Foster Sound | Experienced Game Composer for Hire
by titanicpiano14. 02/19/26 13:22
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
2 registered members (TipmyPip, Quad), 6,365 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
alx, ApprenticeInMuc, PatrickH90, USER0328, Sfrdragon
19199 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