Random movement of enemy sprite both vertically and horizontally?

I’ve figured out how to get the sprite to move randomly horizontally but NOT vertically. Any ideas?

Possibly gravity is in the way, but I don’t know how the game is set up.

Thanks for looking

How do you do the Horizontal version? Can you post screenshots bellow. Vertical and Horizontal code usually are similar and sometimes go hand in hand @trenchy and @“JR 01”

Screen Shot 2020-03-28 at 6.50.26 PM

I would make a random for the X and Y separately, also add a timer cause it changes too quickly with the Always.


Awesome. I’ll check it out and get back to you. Thank you so much.

Almost works @“JR 01” https://flowlab.io/game/view/1384414

Seems like as soon as the sprite hits a wall it all slows down.

Then you could make the Bounce 100 and the friction 0 in the object settings.
If you want it to spin; do Always --> 10 --> add rotation.

@“JR 01” You rock!

They also seem to loose momentum when they bump into each other.
You could try using the timer to repeat forever set for 5 seconds (50).

@“JR 01” Should be a moderator. He helps out so much! He great knowledge about flowlab and upholds the rules always! @grazer actually consider this because I think everyone would agree with me…