Alright guys sorry for the aqward title i didnt know what to put for the title
Ok anyways alright im making a little game and i have pretty much all the knowledge i need, and have tested everything out, now theres one last thing i need! Ok i want to make my game have an object at the bottom of the screen (lets say a gun) and when i have my mouse in around the middle of the screen i want the gun to be in the middle and when my mouse is on the left side of the screen i want the gun to scroll over there with my mouse as it moves, also maybe have the tip of the gun pointing twords the mouse but i want the gun to stay on its x axis and move only with its x axis and not use its y axis if you know what i mean!
Please if anyone can help me please post, and if you have any further questions please feel free to ask, thx sooo much in advance to anyone who attempts to help me and everything!