Remove a 3dbox...?

For questions about using Classic.

Post » Sun Sep 18, 2011 4:52 pm

So, what I want to do is to remove a 3Dbox by rightclicking it.
I tried making the event go like this:
"On right clicked on 3dbox -> 3dbox destroy" but that didn't remove the 3dbox...
Any suggestions on how to make it work?
thanks in advance :D
B
6
G
2
Posts: 39
Reputation: 1,280

Post » Sun Sep 18, 2011 5:07 pm

Didn't know C2 had 3dbox.

In CC 3dbox doesn't do collisions, so you will have to use a dummy.
Even then collisions cant be detected on the z plane, so you will have to use a work around. One way is to add the dummy in a container to the 3d box. Then in events always have the dummy set position to the 3dbox.
If you have multiples I would suggest using sprite's picking conditions. Something like:
+On mouseclick
->distance(dummysprite.x,dummysprite.y,mousex,mousey) < n amount
-->dummysprite pick closest to mousex,mousey- do stuff
Image Image
B
161
S
48
G
90
Posts: 7,356
Reputation: 66,767

Post » Sun Sep 18, 2011 5:18 pm

ooh, thanks for the help :)
B
6
G
2
Posts: 39
Reputation: 1,280

Post » Sun Sep 18, 2011 6:14 pm

Moved to Classic forum.
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,580

Post » Sun Sep 18, 2011 6:22 pm

woop, sorry 'bout that haha I am not used to this forum
B
6
G
2
Posts: 39
Reputation: 1,280


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 5 guests