Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (Ayumi, 7th_zorro, 1 invisible), 1,060 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Hi everybody, I'm back! and with a question! #118230
03/19/07 16:24
03/19/07 16:24
Joined: Jan 2003
Posts: 1,738
Nashua New Hampshire
anonymous_alcoho Offline OP
Senior Developer
anonymous_alcoho  Offline OP
Senior Developer

Joined: Jan 2003
Posts: 1,738
Nashua New Hampshire
So, my computer crashed about 4 months ago. I lost everything I had on it and had to get it replaced. Luckily, I had my project on a flash drive.

And then I misplaced that before I put everything on my new computer. After failing to find it and not wanting to start all over again on my RTS game, I sort of gave up on it.

But 4 months later, I found my drive and I'm ready to start where I left off.

So I have a question that I need an answer to before I begin programming again, (in C-Script, I see that Lite-C, or some version of it, appears to be out, but I don't want to rewrite what I have started). Suppose I have three entities with the following action:

Code:

action someAct
{
doSomething();
}



do all the entities with that action use the same instance of the function doSomething() or do they use their own copy, independent of other entities with the same action?


"Oh no, it's true! I'm a love magnet!" Calvin from Calvin and Hobbes My name's Anonymous_Alcoholic.
Re: Hi everybody, I'm back! and with a question! [Re: anonymous_alcoho] #118231
03/19/07 16:28
03/19/07 16:28
Joined: Mar 2006
Posts: 2,503
SC, United States
xXxGuitar511 Offline
Expert
Happy Birthday xXxGuitar511  Offline
Expert

Joined: Mar 2006
Posts: 2,503
SC, United States
their own copy, as far as i can see what your asking.

Such as if inside the action, you defined a local variable,
action this
{
var localvar;
}


Each entity would have their own copy of this variable, they wouldn't share it...


BTW: Welcome back...


xXxGuitar511
- Programmer
Re: Hi everybody, I'm back! and with a question! [Re: xXxGuitar511] #118232
03/19/07 16:29
03/19/07 16:29
Joined: Jan 2003
Posts: 1,738
Nashua New Hampshire
anonymous_alcoho Offline OP
Senior Developer
anonymous_alcoho  Offline OP
Senior Developer

Joined: Jan 2003
Posts: 1,738
Nashua New Hampshire
Thank you. that answered my question.


"Oh no, it's true! I'm a love magnet!" Calvin from Calvin and Hobbes My name's Anonymous_Alcoholic.

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

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