Gravity yet? For platformer ...

Create fast, sprite powered games with Animation Engine, co-developed with DerBrill Software!

Moderators: heatherlaine, robinmiller, kevinmiller, malte

Post Reply
DaveyJJ
Posts: 15
Joined: Sat Aug 25, 2007 8:38 pm
Location: Waterloo, Ontario
Contact:

Gravity yet? For platformer ...

Post by DaveyJJ » Tue Jan 15, 2008 4:46 am

I want to create a simple platformer like Knytt Stories ... http://nifflas.ni2.se/index.php?main=02Knytt_Stories .

Does AE have gravity yet?

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5138
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Post by Mark » Tue Jan 15, 2008 8:43 am

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

Lynn P.
Posts: 79
Joined: Sun Apr 09, 2006 1:09 pm

Post by Lynn P. » Tue Jan 15, 2008 2:34 pm

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

DaveyJJ
Posts: 15
Joined: Sat Aug 25, 2007 8:38 pm
Location: Waterloo, Ontario
Contact:

Post by DaveyJJ » Tue Jan 15, 2008 3:03 pm

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.

malte
Posts: 1098
Joined: Thu Feb 23, 2006 8:34 pm
Location: Ostenfeld germany
Contact:

Post by malte » Thu Jan 17, 2008 4:59 pm

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

mcgrath3
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 149
Joined: Thu Feb 23, 2006 8:49 pm
Location: Bethel Park, Pittsbrugh, Pennsylvania USA
Contact:

Platform Games

Post by mcgrath3 » Sat Mar 01, 2008 4:11 pm

Did Malte find the platform game described in this thread? I would love to see what is capable.

Thanks
Tom
Tom McGrath III
Lazy River Software
3mcgrath@comcast.net

BvG
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1236
Joined: Sat Apr 08, 2006 1:10 pm
Location: Zurich
Contact:

Post by BvG » Sat Mar 01, 2008 7:23 pm

Right, we want your games, and we want them now!
Various teststacks and stuff:
http://bjoernke.com

Chat with other RunRev developers:
chat.freenode.net:6666 #livecode

JeremyR
Posts: 19
Joined: Tue Mar 06, 2007 9:31 am

Post by JeremyR » Mon Mar 03, 2008 12:20 am

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 :P

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!

malte
Posts: 1098
Joined: Thu Feb 23, 2006 8:34 pm
Location: Ostenfeld germany
Contact:

Post by malte » Mon Mar 03, 2008 12:05 pm

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

malte
Posts: 1098
Joined: Thu Feb 23, 2006 8:34 pm
Location: Ostenfeld germany
Contact:

Post by malte » Mon Mar 03, 2008 12:39 pm

Mark just sent me a copy of my yibbah stack. So if anyone is interested, I can send it off list.
All the best,

Malte

mcgrath3
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 149
Joined: Thu Feb 23, 2006 8:49 pm
Location: Bethel Park, Pittsbrugh, Pennsylvania USA
Contact:

Post by mcgrath3 » Tue Mar 04, 2008 3:49 pm

Jeremy,

very indepth stack. Nice layout. I wonder if animation engine were used how much that could be reduced.


Malte,

I think I remember yibbah. Is there a link?


Tom

(working on a game idea)
Tom McGrath III
Lazy River Software
3mcgrath@comcast.net

JeremyR
Posts: 19
Joined: Tue Mar 06, 2007 9:31 am

Post by JeremyR » Wed Mar 05, 2008 2:06 pm

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 :P

Post Reply

Return to “Animation Engine”