• Bruce

Let's create an MPAGD game - Part 6 - Keyboard Controls

This shouldn't take long...


Click the buttons that you want to use in the game and once highlighted, hit the key that you want to use to control the players direction and fire etc.




In my game, we just want left, right, jump and fire so I only really need to set those keys, I'll leave the rest as they are.


Next, were going to need to write some code that will control how the player moves, in other words, what happens if you press the keys we've just set.


Fortunately, MPAGD can write some initial code for you. From the Tools menu select Script Generator...


NEXT: Generating scripts

aboutME

Hello, I'm Bruce and I write games for old 8bit computers using Jonathan Cauldwell's excellent Multi-Platform Arcade Games Designer (MPAGD)

I've written a few successful* games for the Sinclair ZX Spectrum and MSX platforms that have been (largely) well received with my most recent game - Twenty Four Hour Parsley People scoring a 10 out of 10 on Planeta Sinclair.

In my blog I am sharing lots of the code that I wrote for my games, in a way that you can use in your own games.   I've commented it so that you'll learn some of the techniques I use to create interesting new mechanics and help your games stand out from the pack.

MPAGD includes lots of standard scripts, they're great to get you started, but if you're new (or just rusty) when it comes to writing code, hopefully my tutorials will help you get started and  turn your imagination into awesome 8 bit games!

All my code is free to use and do with as you please, but if you find them useful please feel free to buy me a coffee :)

*successful is a very relative term in 8bit computer games

Subscribe Form

  • Twitter

©2020 by Minilop Retroware