Support

If you have a problem or need to report a bug please email : support@dsprobotics.com

There are 3 sections to this support area:

DOWNLOADS: access to product manuals, support files and drivers

HELP & INFORMATION: tutorials and example files for learning or finding pre-made modules for your projects

USER FORUMS: meet with other users and exchange ideas, you can also get help and assistance here

NEW REGISTRATIONS - please contact us if you wish to register on the forum

Users are reminded of the forum rules they sign up to which prohibits any activity that violates any laws including posting material covered by copyright

platformer game

Post any examples or modules that you want to share here

platformer game

Postby KG_is_back » Tue Oct 28, 2014 6:35 pm

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 1060 times
KG_is_back
 
Posts: 1196
Joined: Tue Oct 22, 2013 5:43 pm
Location: Slovakia

Re: platformer game

Postby Exo » Tue Oct 28, 2014 9:32 pm

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.
Exo
 
Posts: 426
Joined: Wed Aug 04, 2010 8:58 pm
Location: UK

Re: platformer game

Postby billv » Tue Oct 28, 2014 10:04 pm

Nice start KG....can almost see a "pacman" game in there too.. :)
billv
 
Posts: 1157
Joined: Tue Aug 31, 2010 3:34 pm
Location: Australia

Re: platformer game

Postby KG_is_back » Tue Oct 28, 2014 11:01 pm

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.
KG_is_back
 
Posts: 1196
Joined: Tue Oct 22, 2013 5:43 pm
Location: Slovakia

Re: platformer game

Postby Walter Sommerfeld » Wed Oct 29, 2014 12:12 pm

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
User avatar
Walter Sommerfeld
 
Posts: 249
Joined: Wed Jul 14, 2010 6:00 pm
Location: HH - Made in Germany

Re: platformer game

Postby billv » Wed Oct 29, 2014 6:39 pm

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.
billv
 
Posts: 1157
Joined: Tue Aug 31, 2010 3:34 pm
Location: Australia


Return to User Examples

Who is online

Users browsing this forum: No registered users and 131 guests