Making an actor "wiggle"

Player_EPlayer_E Member, PRO Posts: 604
edited November -1 in Working with GS (Mac)
I have a thin line that stretches across my screen. Is it possible to make the actor wiggle like a string when I touch it. I do not want the two endpoints to move at all. Just the middle.

Basically I am going for a guitar string effect. any idea on how to do this?

Comments

  • rebumprebump Member Posts: 1,058
    Only way to do so currently, if you don't want the endpoints to move and thus wiggle in an upward arc to a downward arc, would be to "animate" the strummed string. Have a couple upward arc string images (sprites) of varying arc, a straight string, and a few downward arc images and then cycle through them in an "animate" step.

    If you don't mind the whole string moving (endpoints included), you can just move the Y coordinate of the string actor up and down a bit.

    You could also have three or more layered and constrained actors that move up and down in the Y direction a little more than each other at each layer creating an arc but then you may have issues keeping them in sync.
  • rebumprebump Member Posts: 1,058
    You could just re-size in the Y position from a default string width to string width + 2 and then string width + 4 and then back down. Do this quickly and it would look like it is vibrating while keeping the endpoints fixed. I chose 2 and 4 to get an even stretch of the image in the Y dimension but you may want to play around a bit. Still think the "animate" method would be most realistic.

    (All my info in this thread pertain to Y coordinate/position when using the current GS default of a landscape mode...not that it really matters but never know if someone may be accidently in portrait at a later date but using it in a landscape manner so then X would replace Y in that instance.)
Sign In or Register to comment.