Drag and drop object
-

For this example:
- The ball is set to be a physical object, it can be dragged anywhere on the screen.
- When the ball collides with a green box, it plays a sound.
@RobinsonX thanks a ton! I can build from here. Appreciate the help
-

For this example:
- The ball is set to be a physical object, it can be dragged anywhere on the screen.
- When the ball collides with a green box, it plays a sound.
@RobinsonX how do you set the ball to be a physical object? And how would you make the object return to starting position if it was not dropped on the collision point?
-
@Applegdy There's a behavior called Move to Point, it moves an object to the exact same coordinates you specify.
You can activate a timer after the ball has been thrown and once that timer runs out, it can activate the move to point behavior.
Stopped touching(ball)
|
Wait(as long as needed)
|
Move to Point(move ball back to original position)
——————
when ballCollidedwith goal:
|
Behavior off(turn off timer)
|
Play sound -
@Applegdy You can also add in custom events like when the ball hasn't made it in the goal in time, it can show a game over screen.
@RobinsonX thank you I will try. I have copied what you said at first but when my object collides there is no sound played. I copied as you put in first diagram
-
@Applegdy You can also add in custom events like when the ball hasn't made it in the goal in time, it can show a game over screen.
@RobinsonX I see the problem. I am using font for object. Is there no way to do this for font?
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login
