Gamestudio Links
Zorro Links
Newest Posts
Free Live Data for Zorro with Paper Trading?
by dr_panther. 05/18/24 11:01
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
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (7th_zorro, dr_panther), 724 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Defining Entities #333534
07/16/10 23:22
07/16/10 23:22
Joined: Jul 2010
Posts: 129
B
bk9iq Offline OP
Member
bk9iq  Offline OP
Member
B

Joined: Jul 2010
Posts: 129
Hello all,
I am attaching the same action to about 10 boxes ...
I am giving the box an entity name "box"
However only the first box is getting the name "box" ...
when I am using if you == ball and then some action, only the first box is affected...
How can I make the name "box" as if it is for all the boxes
Quote:

ENTITY* box;
action move_box()
{
box = me;
.....
}





Last edited by bk9iq; 07/16/10 23:22.
Re: Defining Entities [Re: bk9iq] #333535
07/16/10 23:39
07/16/10 23:39
Joined: May 2007
Posts: 2,043
Germany
Lukas Offline

Programmer
Lukas  Offline

Programmer

Joined: May 2007
Posts: 2,043
Germany
action move_box()
{
ENTITY* box;
box = me;
.....
}

-OR, much easer:-
#define box me

Re: Defining Entities [Re: Lukas] #333536
07/16/10 23:44
07/16/10 23:44
Joined: Jul 2010
Posts: 129
B
bk9iq Offline OP
Member
bk9iq  Offline OP
Member
B

Joined: Jul 2010
Posts: 129
The second way worked..... Thank u very much ...


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