Throwing Problem

mELTINGsKYsTUDIOSmELTINGsKYsTUDIOS Member Posts: 158
edited February 2012 in Working with GS (Mac)
Hi guys,

Im making a game where you need to toss an object, and Im having an issue. It seems like the closer I get to left side of the screen, the harder it tosses the object. I really need it to be even across the screen. The code Im using is

When mouse is down, constrain Motion Linear Velocity X to 4*(Mouse position Y-Self position Y)
And
constrain Motion Linear Velocity Y to 4*(Mouse position Y-Self position Y)

Any suggestions? Thanks ahead of time for any help!

Comments

  • mELTINGsKYsTUDIOSmELTINGsKYsTUDIOS Member Posts: 158
    Hi TSB,

    Thanks for the video, its actually what i used to start my game. The Problem is, I went back and edited my code into something more complicated, and then stripped it back down to how your video says because your way works better. For some reason, the closer X is to zero, the harder GS "tosses" my object, which is what happened with my more complicated code.. So it almost seems like it is still using the old code, even though I changed it back to your way. Thanks again for helping, and for all of your videos, you are a life saver.

    Adam
  • mELTINGsKYsTUDIOSmELTINGsKYsTUDIOS Member Posts: 158
    By that I mean, the closer the objects X is to 0, the harder it gets tossed.*
Sign In or Register to comment.