Remember me
You are here: HomeForumCyberix3D ForumExamples
Welcome, Guest
Username: Password: Remember me

TOPIC: How to use the set random block

How to use the set random block 7 months 4 weeks ago #3586

  • whinter
  • whinter's Avatar
  • OFFLINE
  • Senior Boarder
  • Hi, I try to make cool games for the community
  • Posts: 71
  • Thank you received: 16
I want to make the cube or rectangle move randomly, but I don’t know how to do it :(
Last Edit: 7 months 4 weeks ago by whinter.
The administrator has disabled public write access.
The following user(s) said Thank You: AligatorDev

How to use the set random block 7 months 4 weeks ago #3587

  • cyberix3d
  • cyberix3d's Avatar
  • OFFLINE
  • Administrator
  • Posts: 792
  • Thank you received: 797
Hello whinter,

You can use the Set Random command to define the random range, together with random.random, to generate random numbers within that range and make your cube move randomly.

Here’s an example you can check out:
www.gamemaker3d.com/player?pid=01666523

-- Cyberix3D team
The administrator has disabled public write access.
The following user(s) said Thank You: whinter, AligatorDev
Time to create page: 0.095 seconds