Posted 11 December 2011 - 08:33 PM
Here is my problem :
Well, maybe it sounds noob, but
I want to make a piece of code where I can change the scale of the object's sprite.
If it is possible, I want it to change over x seconds, not having to make it scaling 2.0, 1.9, 1.8, 1.7, 1.6, etc...
thanks for answering back
Posted 11 December 2011 - 09:00 PM
if image_xscale > 0 image_xscale -= 0.01; if image_yscale > 0 image_yscale -= 0.01
Posted 11 December 2011 - 09:09 PM
I also forget to tell somes informations :
When Created, the sprite size instantly change to 2.0
then, over 0.8 seconds, it becomes smaller to get back to 1.0
thanks again for answering
Ps : I have another question :
Another object, I want it to appear (I don't know what is the word in english) gradually invisible to its normal sprite.
once again, over 1.0 second please.
Posted 11 December 2011 - 09:30 PM
If image_alpha < 1 image-alpha += 0.01
The first code should have worked fine...
Posted 11 December 2011 - 09:39 PM
I've put all these action in the create event.
instead of the step event
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users