how do i send a actor to a specific random position?
i know how to use random(x,y) but it sends my actor to areas i don't want,
i want to send it between this points. to random when actor is offscreen or destroyed
x=25,y=480
x=50,y=480
x=75,y=480
x=100,y=480
to cover all the way to 280 width, pretty much 8 points. any help will be great
i want to send it between this points. to random when actor is offscreen or destroyed
x=25,y=480
x=50,y=480
x=75,y=480
x=100,y=480
to cover all the way to 280 width, pretty much 8 points. any help will be great
Comments
Then on your moving actor, say "if game.att.prob < 25, go to x=25". If "25<game.att.prob<50, go to x=50", and so forth. This creates probability distributions that allow you to specify a very specific percent chance that an event happens. You'll have to play with the % to make sure there is even probability (for 8 points probably moving by 12ish).
Hope that helps.
I'm too slow!
when radomposition=1
to to x=14,y=480
when radomposition=2
go to x=42, y=480
when radomposition=3
go to x-70,y=480
when randomposition=4
go to x=98,y=480
when randomposition=5
go to x=126, y=480
and to trigger this i changed to , when actor collides with wall change "randomposition" to random1,5)
so when i click play it can do this like 8 times and when actor is again coming down and hits the wall it just stay there. why is not again going back to one of those position? so i click rester and this time it only works like 3 times and gets stuck