Game maker follow mouse




















The reason I want that is because when I put it on android, from what I read a touch acts as a button-down, and so I want the player to drag the paddle with their thumb. So I have a left button event, and a simple line of code tied to it. Any ideas of how I can fix that? YoSniper Member. One thing you could consider is just move the paddle to the mouse regardless of whether the player actually "clicked" the paddle.

I think you'd get a better response there. In paddle object: Step Code:. YoSniper said:. In that case, we can modify my above code a bit to fit your design. My oPlayer object a physics object in Gamemaker uses the following code to follow the mouse:.

Any help with getting the oPlayer object to point in the direction between itself and the mouse's position would be greatly appreciated. With this code, the physics-enabled object will always face towards the mouse position. Sign up to join this community. The best answers are voted up and rise to the top.

Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Learn more. Asked 5 years, 7 months ago. Active 5 years, 7 months ago.

Viewed 2k times. First Make a Sprite of the question make it an object, same with the answer. In the step event, add a move towards action and put x as object1. Put y as object1. Enter the desired speed below. Of course, this is only an example and you would have to replace object1 in both places with the name of the object to be followed.

If your talking about the game maker at "yoyogames. Game maker from yoyogames. Log in. Game Consoles and Gaming Hardware. Video Games. Game Maker. Study now. See answer 1.

Best Answer. Study guides. Computer Networking 20 cards. What are advantages of Database Approach. What is a network that covers a large geographical area such as a city country or world. What is the worlds largest wan. What is a network server. Q: How can you make a object follow the cursor in Game Maker? Write your answer Related questions. In game maker how do you make the screen follow an object? How do you make an object follow another object in a Game Maker game? How do you change the cursor on game maker 8 lite?

How do you make screen follow an object - Game Maker 8? Is there an internal variable for an object's speed in Game Maker?



0コメント

  • 1000 / 1000