Pulling Back on my actor without moving him

millerbrother1millerbrother1 Member Posts: 108
edited November -1 in Working with GS (Mac)
I'm troubleshooting an issue with my game where I allow the user to pull down on an actor in preparation for a "super jump". It squishes the actor (image swap) and allows the finger of the user to adjust the angle of launch for the jump. However, when I pull down on the actor I don't want him to move with the user's finger. I want the actor to stay put on the ground plain and use the finger distance from the actor to determine the leap strength.

I have a feeling my error is hidden in this code. (see tinypic link below)

http://i35.tinypic.com/24wvio2.png

Next up I'll be creating a "pool cue" type of elastic line between the finger and the actor. Also, I need to pre-visualize the leap in a ghosted arc, but that's my next challenge. Right now I need to get my actor to stay put and not drop with the user's finger.

Any help will be appreciated.

Comments

  • scitunesscitunes Member, Sous Chef Posts: 4,047
    I would not have the magnitude calculated until the touch is released.

    I have a arrow demo on my wall that may help.
  • millerbrother1millerbrother1 Member Posts: 108
    What is the name of your Arrow Demo?
  • millerbrother1millerbrother1 Member Posts: 108
    Never mind, I found it. "Arrow Demo". Ha! You would think it was difficult or something.
  • millerbrother1millerbrother1 Member Posts: 108
    Scitunes,

    Great arrow demo. Thanks for sharing the work you did on it. I'm still running into an issue with my actor dropping below the ground plain.

    I noticed in your arrow demo the arrow "spins" slightly on first touch. Is there a way to eliminate this as well?

    - Chris
Sign In or Register to comment.