platformer game

Post any examples or modules that you want to share here
Post Reply
KG_is_back
Posts: 1196
Joined: Tue Oct 22, 2013 5:43 pm
Location: Slovakia

platformer game

Post by KG_is_back »

A simple platformer game. You may specify platforms and player position. Moving happens via arrow keys. The collision physics is not very smooth, but it doesn't matter that much.
Attachments
platformer0.1.fsm
(2.62 KiB) Downloaded 1120 times
Exo
Posts: 426
Joined: Wed Aug 04, 2010 8:58 pm
Location: UK
Contact:

Re: platformer game

Post by Exo »

Very nice thanks KG,

Getting some errors on load, I had to cut and paste the map & specs module to get rid of a nil class error.
And also there is an EncodingError (in method 'load state') message inside the Ruby component with the physics inside. which is odd because it doesn't look like there is a loadstate method defined.
Flowstone Guru. Blog and download site for Flowstone.
Best VST Plugins. Initial Audio.
billv
Posts: 1165
Joined: Tue Aug 31, 2010 3:34 pm
Location: Australia
Contact:

Re: platformer game

Post by billv »

Nice start KG....can almost see a "pacman" game in there too.. :)
KG_is_back
Posts: 1196
Joined: Tue Oct 22, 2013 5:43 pm
Location: Slovakia

Re: platformer game

Post by KG_is_back »

Exo wrote:Very nice thanks KG,

Getting some errors on load, I had to cut and paste the map & specs module to get rid of a nil class error.
And also there is an EncodingError (in method 'load state') message inside the Ruby component with the physics inside. which is odd because it doesn't look like there is a loadstate method defined.


I noticed these errors too. The loadstate error comes from the hidden method that save inputs and outputs - some variables can be passed but not saved and loaded. You might recall some time ago I posted an example where I tried to pass paths and it gave the same error, so I declared custom (dummy - empty) load and save functions for the marshal routine.
I noticed the errors when I reopened the schematic after publishing it.
User avatar
Walter Sommerfeld
Posts: 250
Joined: Wed Jul 14, 2010 6:00 pm
Location: HH - Made in Germany
Contact:

Re: platformer game

Post by Walter Sommerfeld »

Hi KG,

nice example...

i got rid of the errors with 'After Load' triggering 1st the 2 arrays in the 'map & specs' mod!

Keep on doing
billv
Posts: 1165
Joined: Tue Aug 31, 2010 3:34 pm
Location: Australia
Contact:

Re: platformer game

Post by billv »

For reference, I didn't use a afterload.
In the "maps and specs" module, I clicked reset, and the "Float Array Input"
until values appeared in the watch.
Then in main module,turned the ruby element off/on.
Loads up fine.
Post Reply