- Title: Smallest Movement Script Challenge
- Description: Make player or AI movement scripts as short and as efficient as possible
- Deadline: Ongoing
Ladies and gents, show us your knowledge of GM functions and math by reducing player and AI movement to just a few lines!!!
Categories
- 2d Top Down
- Walking Person
- Driving Car
- Driving Tank
- Flying Plane
- Flying Space Ship
- 2d Platform
- Walking Person
- Driving Car
- Driving Tank
- Flying Plane (Think Atari Plane Combat on the 2600)
- Flying Space Ship (Think Defender or Lunar Lander)
Control Type
- KB Only
- Mouse
- Joystick
- Other (Phone Tilt/Touch Screen)
Bonus
Extra Points if your method can support multiple Control Types.
Extra points if your movement can supports speed based and coordinate based movement.
Extra points if your movement can supports Player and AI.
Mega Extra Points if your movement method supports multiple categories
Restrictions
Collision must be handled separately and not be dependent on your movement code.
Method has to be encapsulated in a single script, and, possibly a support init script called in the create of an object (no penalties for init scripts)
You must provide a project file. GMK to GMZ (Studio) format.
If packaged, use zip format.
Prize
Bragging rights and your code be referenced when a newbie asks a "How do I move like this" question...
Best methods will be referenced below and the winner will be referenced in the lists above.
ATTENTION
One script per post, one post may show variants of the same script and suggestions on usage. I plan to link to the individual solutions and so I do not want people getting confused with 5 scripts for 3 categories in one post. I will forgo the no double post rule for this so if you have a solution for many categories you may post them one after the other.
Simplicity and Efficiency and Human readable; a few vars and comments are allowed and encouraged, being able to define the keys via variables is also encouraged.
Please add the tags
[2d Top Down]
[Walking Person]
[KB][Mouse]
for example for a Top down Walking Person Keyboard and Mouse movement, matching the above mentioned categories











