Hi everyone !
I have a question for you.
I have some nice Zoom and Camera movement for some of my skills. but I want theim to have a 20% Chance to be activate.
So 80% of the time the camera doesn't move and 20% of the time the camera will make some action.
So I imagine something like a dice or something but I don't have any knowledge in JS to write a correct code :
....
Wait : 20
var dice = random between 1 and 5
If dice > 4
then
zoom: 200%
else nothing
motion thrust: user
Etc...
I'm not sure if I'm clear enough.
Can anyone could show me the correct form to accomplish what i'm trying to do ?
Thanks a lot and have a great Making !
I have a question for you.
I have some nice Zoom and Camera movement for some of my skills. but I want theim to have a 20% Chance to be activate.
So 80% of the time the camera doesn't move and 20% of the time the camera will make some action.
So I imagine something like a dice or something but I don't have any knowledge in JS to write a correct code :
....
Wait : 20
var dice = random between 1 and 5
If dice > 4
then
zoom: 200%
else nothing
motion thrust: user
Etc...
I'm not sure if I'm clear enough.
Can anyone could show me the correct form to accomplish what i'm trying to do ?
Thanks a lot and have a great Making !