im trying to make the ball roll down and when it hits the block that has the strawberry the ball resets and rolls down again however its working but it only rolls and respawns about 4 times until it stops, i also want the ball to like roll down a few times, stop for a few seconds, then start rolling down again, then repeat that whole process. I just dont know how to program this
If the ball and the platform are using the physics behavior, then you need to use the physics collision condition. Otherwise, the physics behavior could be separating the two objects before the basic collision condition has a chance to detect the collision.
If you want a delay then you can use a timer.
The ball is using the physics behaviour but i don’t know what i need to do next. If you could show an example that would be great. Thanks
Objects with the physics behavior have added commands that start with the atom symbol. You need to use that version instead of the basic collision condition.
The conditions are basically the same. The physics behavior uses the physics collision while the normal one uses the normal collision.
Thank You, Keith, My guy. It worked. But now how do i add a timer so that it rolls then stops then rolls
Are you familiar with timers.
https://wiki.gdevelop.io/gdevelop5/all-features/timers-and-time/#scene-timers
It depend on when you want to start and stop it.
You could use 2 timers. One to pause between movements and another to control the length of movement.
Maybe, something like this:
At the beginning : Start DelayTimer
DelayTimer > 5 seconds
… move ball, delete DelayTimer, start MoveTimer
MoveTimer > 5 seconds
Ball is in collision with platform
… Stop object, delete MoveTimer, start DelayTimer
If there are multiple balls then use an object timer.
I used the collision so the ball doesn’t stop midair.



