What are the behaviors to drag a ball in a labyrinth, without the ball jumping over the walls when we drag over it ?
Nobody knows ?
I tried to put :
The wall : solid
The ball :solid + drag
=> drag ok but no collisions with the wall
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 ?
obody knows ?
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.
Develop games in your browser. Powerful, performant & highly capable.
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 ;) )