CAPX: https://www.sugarsync.com/pf/D6025908_4317202_6900854
The game play is a top-down view. What I'd like to do is create an item (object GrenadeFlash) that, when "thrown" from the player (object CharFinn), it will appear as if it's rising in elevation as you look down. Naturally, as something comes closer to you, it appears to be getting larger. This is where the Sine behavior comes in.
The problem I'm facing, though, as I learn how to use the Sine behavior is how to stop it mid-period. Let's say the object I'm using is 10 pixels wide and I want its size to expand by 10 (to a max of 20) during its run through the Sine behavior. I've noticed, however, that it will shrink to less than 10 pixels before it finishes its cycle.
What I want to do is set it so that when it is launched, it will increase to my desired max size then return to its original size and then be destroyed. I can figure out the movement of the object and destroying it. What I'm not sure about is how to cut it off mid-period.
Any suggestions?
Thanks!