Simon Donkers's Game Maker site siteSimon Donkers's Game Maker site
Version: All Read: 17743 Article
Filesize: 16 kb Creative Commons License

Coding efficiency

1/52/53/54/55/5 (41 votes)

Conclusion

There are many methods of optimizing your game code. I can not possible discuss them all here. A good practice is to read through other people there code and see other methods of coding things. You will eventually learn techniques on how to make your coding more efficient. Just keep trying. Also make sure to always try and limit the amount of code you are using. This saves you time from programming but also saves Game Maker time for interpreting. Lazyness is useful :)

Related links:

Game Maker manual, speed considerations
Big Brain, multiplayer performance tips
GMC, Functions to avoid
GMC, GM functions measured for execution speed

[ Go to page [1] [2] [3] [4] ]

User comments

 Timmins posted at 2005-02-15 20:55:14Quote
Very nice article, Simon. I learned a couple of new things, and thanks for writing this. You use "and" too many times inside your written piece, but I read through it.

Can't wait to see more articles,

Timmins
 Scotley posted at 2005-03-22 09:45:38Quote
Absolutely ripper. Have used c# a bit so I realise most of this, but good to get a refresher! Awesome work Simon.
 Vishal posted at 2005-04-05 16:07:53Quote
Great tips and a great game(Bacteria 2), probably one of the best games made in GM.
 Red man can posted at 2005-06-24 09:12:23Quote

my sirname is coidling! =)
 Marlow posted at 2005-07-16 19:59:25Quote
wonderful...just the type of information I needed to read to make my programming less sloppy and actually easier to write... I especially enjoyed your material about using the alarm event rather than the step event, view usage, and parent relationships... these will help me out the most. I look forward to more of your articles... Thank you.
 Isaac Mattox posted at 2005-10-02 23:40:12Quote
Looking for advise on Ai development for a simple game of checkers. All the movements work properly but I want Ai to play against the computer. Any suggestions? alberley@yahoo.com
 Elmernite posted at 2005-10-31 14:15:37Quote
Very nice! I really like it. It's a great articles. This will really help a lot of people (me included). Your a help to the GM world.
 eleet posted at 2005-12-08 00:38:22Quote
For you question about the game checkers, it is not a simple thing to make a AI for checkers, in fact no one in the world yet found a way to make a perfect AI for checkers there are just to many ways to move and play. Also, if you want the AI to play the AI then all you have to do is make a simple script that says whois turn it is to play and make the AI the player 1 and player 2. You can also have a loop set so they will play the game over and over for millions of times. But trust me AI for that type of game is in no way ez to make.
 Question posted at 2006-03-05 03:32:22Quote
Question:Why dont u include ur sites?
 Jeff van Hees posted at 2006-08-21 10:33:20Quote
Very nice article Simon, just like your others! I think this really help people with their problems. Thanks for writing this...
 mrme posted at 2008-08-09 18:17:18Quote
thank you for this article I didn't know about the "Never use moving solid objects"
rule and i kept having problems with my game.
 Game Detour posted at 2009-05-06 01:30:29Quote
Thanks!!!

m/
 jasperdj posted at 2009-11-14 13:44:33Quote
Soms things i knew some thing i didnīt knew. This i quite a qood example, i is something every advanced game maker user should know!
 detour posted at 2010-01-02 14:50:44Quote
how exactly do you disable the object during the game

Reply

Name:
Site: