Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
0 registered members (), 18,561 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
How can i move an entity with an attached object? #282316
07/31/09 09:23
07/31/09 09:23
Joined: Jun 2009
Posts: 17
Cebu Philippines
U
uone Offline OP
Newbie
uone  Offline OP
Newbie
U

Joined: Jun 2009
Posts: 17
Cebu Philippines
Hi guys,

I am making a 3d brick game that has a catcher and a ball entity, the catcher object has a special skill that serve as a magnet and would attached the ball at the top when collide.

my problem is, how can i move both entity at the same time without setting the ball's flag to PASSABLE. because i cant move the catcher when there is object attached to it. not unless i will set the ball object to PASSABLE.
i am setting the ball's coordinate to the catcher coordinate.

here is my code for setting the ball always in the top of the paddle:

while(condition is true)
{
......
vec_set(player.x,vector(ent_catcher.x+100,ent_catcher.y,ent_catcher.z));
......
wait(1);
}

i suppose the catcher will move and the ball will always at the top of the catcher but whenever the ball is in the top the catcher wont move.

is there any other way to move both objects when attached?


please advice...

thanks

Re: How can i move an entity with an attached object? [Re: uone] #282317
07/31/09 09:31
07/31/09 09:31
Joined: Jul 2007
Posts: 424
EUROPE
maslone1 Offline
Senior Member
maslone1  Offline
Senior Member

Joined: Jul 2007
Posts: 424
EUROPE
Try:

Way 1) with Event_Push you could solve this

Way 2) make one obect passable, and create an offset, collision-model (invisible)



Last edited by maslone1; 07/31/09 09:32.

A8c, Blender, FlStudio, Unity3d
Re: How can i move an entity with an attached object? [Re: maslone1] #282325
07/31/09 10:24
07/31/09 10:24
Joined: Jun 2009
Posts: 17
Cebu Philippines
U
uone Offline OP
Newbie
uone  Offline OP
Newbie
U

Joined: Jun 2009
Posts: 17
Cebu Philippines
thanks man...

problem solved i use ENABLE_PUSH


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

Gamestudio download | 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