how to make balloons or bubbles with different color keep floating randomly

Hi, I want to make balloons or bubbles keep floating. I know how to make them moving up using accelerate , but once they leave the scene, they never come back. I also cannot make them float randomly. I only know how to make them start floating in a fixed location every 5 sec using the timer, so it doesn't look very good. Thanks!

Comments

  • SingleSparqSingleSparq Member Posts: 1,339
    You could increase the game area (screen area stays the same) and turn on the wrap for x and y so that when a balloon goes off screen it will come back in the other side. And add a random timer on the balloon that would change its acceleration every x amount of seconds, even randomize the direction. For things you don't want to wrap, add collision to them with (non movable) borders around the screen area.
  • PandaParentsPandaParents Member Posts: 64
    Thanks! That is exactly what I wanted.
Sign In or Register to comment.