Help, tutorials and examples for Game Maker

Spiral Lords
click to visit
Lead your empire to conquer the galaxy.

The Black Hole that Wants to Eat Me
click to visit
Stranded in space close to a black hole...
Platformer Engine
click to visit
An Engine to help you start a 2D Platformer Game.

The Invention of Life
click to visit
Game for the GameJolt Invention Contest.
Home Search/Browse Comments Trollsplatterer You can help! Links
Terms&Conditions This website has been designed for Firefox Design by Trollsplatterer (©2018)

Select and move  download now

This example shows you how to select instances and move them to the mouse-position. You can select and deselect balls with the Left Mouse Button and the control-button and move a group with the Right Mouse Button.


General Rating
Your Rating*


By Comment
JSgOyQfJzV WhHmzTQluU PpBAvolaov SduraCbpkr aTQizaOaNz SHXWgwRzZE EZwEYOngYN RNQkcJlBrt JkcNVvfzpB siVLidkihZ
You can use the action "Move avoiding" for that purpose. More complex movement scripts are beyond this example, as most require a lot of scripting and I'd like to keep this example as simple as possible.
can you make this so it goesa around walls for the fastest route?
I'm glad to have been of help. If you need extra features, let me know.
Thank god for this. I've been searching the GM wiki forever and no one seems to be able to make a competant click and move for multiple objects. Thanks so much!

* : The rating makes use of your IP-address to remember your vote. IP addresses may change, but your vote will be kept, even though it may no longer be visible here.