Throwing Problem
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!
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
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