PlayMaker Help & Tips > iOS Help

How to set random float every frame?

(1/1)

QueenM56:
Hi,

I'm working on a 2D ios game and come across a problem with random float.
Please see attached image...
I want to store a random float variable, so an object will appear at random height.
It seems require to save it for every frame.
But there is no option for it.
Can anyone help to solve the problem?
Cheers,
M

Fat Pug Studio:
Just loop the state into itself.

Plancksize:
Just like the previous poster said, loop it into itself. You can use a "Next Frame Event" action at the end of the state to make it run once per frame.

QueenM56:
Thanks guys, the 'next frame even' works!

M

Navigation

[0] Message Index

Go to full version