Gravity yet? For platformer ...
Moderators: heatherlaine, kevinmiller, robinmiller, malte
Gravity yet? For platformer ...
I want to create a simple platformer like Knytt Stories ... http://nifflas.ni2.se/index.php?main=02Knytt_Stories .
Does AE have gravity yet?
Does AE have gravity yet?
I replied here: http://forums.runrev.com/phpBB2/viewtop ... =5227#5227
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
I don't think Animation Engine has direct calls to manipulate gravity, however you can control direction, speed and collision aspects so I'm fairly sure it can be done in some way.
Malte Brill from derBrill Software will probably come along soon to answer your question, and you can always send an Email to: info@derbrill.de
Malte Brill from derBrill Software will probably come along soon to answer your question, and you can always send an Email to: info@derbrill.de
Thanks Lynn,
I know that I could probably fake it relatively (pardon the pun) easily. Simply move an object down say, 12 pixels, every second unless it was in collision with another object (the later object representing the floor). Jumping could be done simply as well ... just change the "gravity" variable to 0 and then loop it up to 12 again over a second or so, and move the character up a height you'd like them to "jump".
Or something like that anyway.
I know that I could probably fake it relatively (pardon the pun) easily. Simply move an object down say, 12 pixels, every second unless it was in collision with another object (the later object representing the floor). Jumping could be done simply as well ... just change the "gravity" variable to 0 and then loop it up to 12 again over a second or so, and move the character up a height you'd like them to "jump".
Or something like that anyway.
Please excuse me being late to the party
I am travelling this week and only have a flaky iNet connection after hours. I will try to respond in detail ASAP.
Short answer: No real gravity as yet. But you can fake it.
Davey said he wanted examples of a simple platformer. I will need to dig through the HD on my office machine once I get back. I think I have some demos flying around.
All the best,
Malte
I am travelling this week and only have a flaky iNet connection after hours. I will try to respond in detail ASAP.
Short answer: No real gravity as yet. But you can fake it.
Davey said he wanted examples of a simple platformer. I will need to dig through the HD on my office machine once I get back. I think I have some demos flying around.
All the best,
Malte
-
- VIP Livecode Opensource Backer
- Posts: 149
- Joined: Thu Feb 23, 2006 8:49 pm
- Location: Bethel Park, Pittsbrugh, Pennsylvania USA
- Contact:
Platform Games
Did Malte find the platform game described in this thread? I would love to see what is capable.
Thanks
Tom
Thanks
Tom
Tom McGrath III
Lazy River Software
3mcgrath@comcast.net
Lazy River Software
3mcgrath@comcast.net
Well I guess I'll throw my example out there. Not sure if it stacks up to what Malte has, but better than sitting on my harddrive rotting away
It doesn't use the Animation Engine, but it should show some example of what is possible in revolution.
The code is a mess, it was done a few years ago now. If you don't touch the controls at the title screen it will play a demo of the first level, i think you can easily record demo's yourself via hotkeys while playing. In-built editor (press e while playing). It is buggy, especially the editor, and isn't very intuitive, but it was never meant for public distribution.
http://www.taggedsoftware.com/files/pla ... xample.zip
Enjoy!
It doesn't use the Animation Engine, but it should show some example of what is possible in revolution.
The code is a mess, it was done a few years ago now. If you don't touch the controls at the title screen it will play a demo of the first level, i think you can easily record demo's yourself via hotkeys while playing. In-built editor (press e while playing). It is buggy, especially the editor, and isn't very intuitive, but it was never meant for public distribution.
http://www.taggedsoftware.com/files/pla ... xample.zip
Enjoy!
Very nice stuff Jeremy!
By far more complex then the demo I would have had. I am afraid mine has gone to nirvana (or farwana) at least I was not able to dig up the code anywhere. For what it is worth there is a standalone version left on my site http://www.derbrill.de/yibbah . However, as I recall correctly that was pre AE and not really good.
All the best,
Malte
By far more complex then the demo I would have had. I am afraid mine has gone to nirvana (or farwana) at least I was not able to dig up the code anywhere. For what it is worth there is a standalone version left on my site http://www.derbrill.de/yibbah . However, as I recall correctly that was pre AE and not really good.
All the best,
Malte
Thanks Malte and Tom for the kind words. I'm sure a fair size of code could be reduced when using the Animation Engine
I'm planning on releasing the source code for my first shareware game (Gladiator Trials II) sometime next year. It's not a platformer, but hopefully will be of interest to revolution game developers. Help inspire future generations perhaps
I'm planning on releasing the source code for my first shareware game (Gladiator Trials II) sometime next year. It's not a platformer, but hopefully will be of interest to revolution game developers. Help inspire future generations perhaps