RigidBody2d randomized movement

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Rayu

First of all i am a big noob, its 1 month and i watched so many tutorials and read so much but still have no clue.

So i have made a Rigidbody2d and connected it with a TextureButton, i want that RigidBody’s movement to be randomized and with every click it gets faster.

PS: My English is not very good lol, PLEASE ANSWER.

how do you want it to be randomized? is it an enemy, and if so what kind?

Millard | 2020-11-03 21:19

Do you want to move it randomly at certain location at certain interval, or you just want to make it move frantically in any direction each frame?

razor7131 | 2020-11-03 21:49

No Enemy, it’s a TextureButton you have to press. And if you press it = Next level and the Button gets faster (tiny bit), but as the levels goes on and on it should be getting really fast.

how do i want it to be randomized?
With each level other movement. And it pops up in different locations.

Rayu | 2020-11-04 10:44

not frantic, like very smooth ( it’s a One Screen Game and it bounces on the edges)

Rayu | 2020-11-04 10:46