Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
Game Design is the process of deciding the rules and mechanics of a game, and solving balancing problems to achieve the intended play experience. For questions about design of software code, use the Software Engineering or Algorithm tags instead. Likewise, questions about visual design should use Art or Graphics tags.
2
votes
Accepted
How to make an object towards the mouse on one Axis - Gamemaker Studio 2
Just check where is the mouse based on the object's position:
if (mouse_y - y) > 0 {
y+=1;
} else if(mouse_y - y) < 0 {
y-=1;
}
This same code could be written in different ways but are a l …