Ball in a labyrinth

Get help using Construct 2

Post » Fri Mar 23, 2012 10:46 am

What are the behaviors to drag a ball in a labyrinth, without the ball jumping over the walls when we drag over it ?
thx
B
3
Posts: 8
Reputation: 316

Post » Sat Mar 24, 2012 7:50 am

Nobody knows ?
I tried to put :

1)
The wall : solid
The ball :solid + drag
=> drag ok but no collisions with the wall

2)
The wall ball
The player ball + drag + 8 movements
=> drag ok, collisions with the wall ok but if I drag over the wall to the opposite side, the ball will jump over the wall
How can I constraint it into the street of my labyrinth ?
B
3
Posts: 8
Reputation: 316

Post » Sat Mar 24, 2012 6:22 pm

[quote]Nobody knows ? [/quote]
No, nobody had the time to respond in 24 hours.

To answer the question I don't find any of the behaviors satisfactory so I just did it with events. I move the player one pixel at a time so that it does not jump over the walls.
http://dl.dropbox.com/u/5426011/examples10/mazedrag.capx
B
79
S
24
G
54
Posts: 4,747
Reputation: 40,757

Post » Sun Mar 25, 2012 8:14 am

Hi,

Nicely done
I have added one more variable to move the ball only when I drag it and it works perfectly.

thank you for your help

(sorry but I am a little bit in a hurry, I am a trainee and I have to decide as quick as I can the technology I will use for my project ;) )

Fabien
B
3
Posts: 8
Reputation: 316


Return to How do I....?

Who is online

Users browsing this forum: Yahoo [Bot] and 13 guests