ok, I'm new to this but I can't seem to find anything on how to make random number between certain points? It would help me lots if someone can explain how us them.
cheers
Comments
gyroscopeI am here.Member, Sous Chef, PROPosts: 6,598
Hi SlightlyGrim, by between certain points you mean say, random x and/or y coordinate, then the following should help you:
In your Rules put Change Attribute scene.YourActor.Position.X to random(24,500) THis example then will move your actor called YourActor to a random x position between and including 24 and 500, for example.
If you don't know, you get the random by holding down the e, and in the list hiding under the second small disclosure triangle there is random. Choose that, and insert your figures for min and max. Hope that helps. :-)
Helped very much cheers, Some extra help would be grateful for what I'm trying to do. I have a health bar which has health randomly generated, only issue is I don't want my health bar to vary in size. I used the health bar tutorial from gamesalad how to. Can be found here:
if anyone knows a better way to do this or away of how to fix the problem would be a great help
Comments
In your Rules put Change Attribute scene.YourActor.Position.X to random(24,500) THis example then will move your actor called YourActor to a random x position between and including 24 and 500, for example.
If you don't know, you get the random by holding down the e, and in the list hiding under the second small disclosure triangle there is random. Choose that, and insert your figures for min and max. Hope that helps. :-)
if anyone knows a better way to do this or away of how to fix the problem would be a great help
cheers