Gamestudio Links
Zorro Links
Newest Posts
loading historical data 1st time
by AndrewAMD. 04/14/23 12:54
Trade at bar open
by juanex. 04/13/23 19:43
Bug in Highpass2 filter
by rki. 04/13/23 09:54
Adding Limit Orders For IB
by scatters. 04/11/23 16:16
FisherN
by rki. 04/11/23 08:38
AUM Magazine
Latest Screens
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Hecknex World
Who's Online Now
4 registered members (fogman, Grant, AndrewAMD, juanex), 989 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
rki, FranzIII, indonesiae, The_Judge, storrealba
18919 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 | chip programmers | 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