jPlay demo

Monkey Archive Forums/Monkey Projects/jPlay demo

Leon Brown(Posted 2012) [#1]
Here is a file format I've been creating for the production of animations, presentations and games:

http://files.nextpoint.co.uk/demo/jplay/


therevills(Posted 2012) [#2]
Hey Leon, just loaded this up and tried "walk down" and it crashes with a Monkey runtime error: Array index out of range
/Users/leonbrown/Documents/code/monkey/game/game.monkey<455>
/Users/leonbrown/Documents/code/monkey/game/game.monkey<219>
/Applications/MonkeyPro55/modules/mojo/app.monkey<57>


Difference(Posted 2012) [#3]
Nice

@therevils: Capitalize "Walk" to avoid the error.


therevills(Posted 2012) [#4]
@therevils: Capitalize "Walk" to avoid the error.


Nope, I tried that, still get the error: walk down, Walk down, Walk Down, WALK DOWN (wow Walk looks strange if you look the word too long!) - all fail


Leon Brown(Posted 2012) [#5]
Thanks for checking it out. There isn't an syntax error check in the user input at the moment, so you have to provide the right command syntax to avoid the error. You need to provide the number of steps to walk, so instead of "walk down" you will need to type something like "walk down 3" or "walk down 3 steps". Hope that helps you solve the puzzle ;-).


therevills(Posted 2012) [#6]
LOL... I totally failed on reading the instructions! I didnt see the [steps] part - Orz!


Leon Brown(Posted 2012) [#7]
Easy mistake to make ;-)