Slick Forums

Discuss the Slick 2D Library
It is currently Thu May 23, 2013 9:31 pm

All times are UTC




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: Newbie questions!
PostPosted: Tue Mar 06, 2012 6:21 pm 
Offline

Joined: Tue Mar 06, 2012 6:16 pm
Posts: 7
Hey guys, I'm trying to make a simple platforming game using Slick. Naturally, I have a couple of questions:

- I have an animation and I want to make it loop in-between two specific frames once it reaches the first of these two frames. How can I do this?
- Should I use the Marte Engine to create enemies? What about Phys2D, should I use it for collision detection?


Top
 Profile  
 
 Post subject: Re: Newbie questions!
PostPosted: Tue Mar 06, 2012 6:55 pm 
Offline
Slick Zombie

Joined: Wed Apr 02, 2008 1:32 pm
Posts: 1313
Location: Italy
hi and welcome!

Lopson wrote:
- I have an animation and I want to make it loop in-between two specific frames once it reaches the first of these two frames. How can I do this?


You should customize Animation class see Slick source code for this. Best way is customize your spritesheet and make your loop so.

Quote:
- Should I use the Marte Engine to create enemies? What about Phys2D, should I use it for collision detection?


You can use Marte Engine for make a platformer, see MarteEngine Fuzzy example on github.
Phys2D is a different stuff from ME, take a look to examples of both and decide. I think Phys2D have more you want to do a platformer

_________________
Blog | Last game Gravity Duck tribute | In progress Gravity Duck tribute


Top
 Profile  
 
 Post subject: Re: Newbie questions!
PostPosted: Tue Mar 06, 2012 7:39 pm 
Offline

Joined: Thu Jan 26, 2012 5:40 pm
Posts: 79
If you're not doing anything crazy, MarteEngine makes things really easy. I would recommend it. MarteEngine can handle collision and physics.


Top
 Profile  
 
 Post subject: Re: Newbie questions!
PostPosted: Tue Mar 06, 2012 8:24 pm 
Offline
Game Developer

Joined: Sun Nov 12, 2006 11:18 pm
Posts: 890
Location: Germany
I've written two platformers with Marte, Back to the past and StarCleaner. StarCleaner is part of the Marte source code (under test). The source code for Back to the past can be downloaded on my website.

Although Marte contains only minimalistic and basic physics stuff it's perfectly fine for a platformer game.
As already said phys2d is a much more powerful library but needs more work on your side.

Marte also supports animations so you're fine there too.

Just give it a go and learn while you improve your game. Feel free to use the code from my games - should help you a lot :lol:

Cheers,
Tommy

_________________
Right Angle Games | Marte Engine
Back to the past | Star Cleaner | SpiderTrap


Top
 Profile  
 
 Post subject: Re: Newbie questions!
PostPosted: Tue Mar 06, 2012 8:51 pm 
Offline

Joined: Tue Mar 06, 2012 6:16 pm
Posts: 7
Wow, so many responses! Thanks for all your suggestions, it's small stuff like this that can really help a guy out when starting out. I'll be using Marte, then, it seems like the right tool for this kind of game. And, Tommy, thanks for sharing that game's code!


Top
 Profile  
 
 Post subject: Re: Newbie questions!
PostPosted: Wed Mar 07, 2012 8:19 am 
Offline
Slick Zombie

Joined: Wed Apr 02, 2008 1:32 pm
Posts: 1313
Location: Italy
About basic platformer made with MarteEngine, here a running example, take a look to github wiki
Source code of this basic example is here

For a more complex example take a look to Fuzzy, here source code

_________________
Blog | Last game Gravity Duck tribute | In progress Gravity Duck tribute


Top
 Profile  
 
 Post subject: Re: Newbie questions!
PostPosted: Wed Mar 07, 2012 9:08 pm 
Offline

Joined: Tue Mar 06, 2012 6:16 pm
Posts: 7
Again, thanks for all these examples and documents, they make things a lot easier!


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC


Who is online

Users browsing this forum: Wontorres and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group