Gamestudio Links
Zorro Links
Newest Posts
Lapsa's very own thread
by rki. 06/18/24 15:32
A simple game ...
by VoroneTZ. 06/18/24 10:50
Face player all the time ...
by bbn1982. 06/18/24 10:25
Executing Trades on Next Bar Open
by vicknick. 06/13/24 08:51
Zorro Beta 2.61: PyTorch
by jcl. 06/10/24 14:42
New FXCM FIX Plugin
by flink. 06/04/24 07:30
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
6 registered members (AndrewAMD, rki, Mino, Martin_HH, squik, Ayumi), 1,126 guests, and 7 spiders.
Key: Admin, Global Mod, Mod
Newest Members
squik, AemStones, LucasJoshua, Baklazhan, Hanky27
19060 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