- Joined
- Mar 28, 2016
- Messages
- 1,623
- Reaction score
- 1,439
- First Language
- French
- Primarily Uses
- RMMV
hi, there is a more elegant way to write this code ?
in my context, i would like to inverse the proprety easeX but randomly.
if one have a beter sugestion.
because it is a little heavy for make a simple random reverse.
but I can't imagine another way cleaner.
thank you
in my context, i would like to inverse the proprety easeX but randomly.
PHP:
if(Boolean(Math.round(Math.random()))){ obj.easeX = ~obj.easeX+1;};
if(Boolean(Math.round(Math.random()))){ obj.easeY = ~obj.easeY+1;};
because it is a little heavy for make a simple random reverse.
but I can't imagine another way cleaner.
thank you
Last edited:
