Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (AndrewAMD, Akow, degenerate_762), 1,430 guests, and 9 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19055 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