The Novice And Intermediate FAQ
A Comprehensive FAQ and GML Learning Resource
Basic Learning Topics
- The Complete Beginners Guide To GML Coding
- Functions
- Variables
- If / Else Statements
- With Statements
- For Loops
- Arrays
- Scripts
- The difference between instances / id's / indexes
- Using mod
- What a DLL is
Error / Problem Questions
- 'Unknown Variable' error
- 'Unexpected Error Has Occurred' error
- 'Cannot Compare Arguments' error
- Key / mouse buttons not registering (also how to check a key press)
- The player has disappeared (something wont draw)
Collision / Movement Questions
- Detecting the side of a block the player hit
- Pushing blocks
- Jump through platforms
- Good sprite system
- Snapping to a grid (topdown or isometric grid)
- Rotating towards a point in the quickest direction
- Moving towards an object avoiding obstacles
Object / Drawing Questions
- Using depth correctly
- Shooting at the nearest enemy
- Making a bullet come out of the tip of the gun
- Stop it firing a continuous stream of bullets
- Line of sight / vision cone (can't see enemies behind walls)
- Drawing things in view
- Getting text onto a new line (also how to get # character in a string)
Miscellaneous Questions
- Setting things relative in gml
- Pausing the game
- Dealing with random numbers / event
- Wrapping (text or objects in a room)
- Toggling a variable (make 1 when 0 and 0 when 1)
- How many steps there are in a second
- Making a count down timer (also using alarms)
Advanced Coding Techniques
- Good coding practices
- Using a controller object
- The power of parenting
- Flexible weapon and constant system
- How to make a DLL
Other Resources
- Other examples / topics
- Things to do before posting
- Known game maker bugs
- Ways you can learn gml
- Useful links











