Slick Forums

Discuss the Slick 2D Library
It is currently Sat May 25, 2013 10:56 pm

All times are UTC




Post new topic Reply to topic  [ 8 posts ] 
Author Message
PostPosted: Wed Jul 04, 2012 9:11 pm 
Offline

Joined: Thu Jun 21, 2012 3:27 pm
Posts: 27
Alright so my game is a state based game and I want to use a Tiled map. I followed freeaks tutorials but it didn't work, the character didn't move, he was just stuck in the corner (most likely because that game extended basicgame) so I was just wondering, how can I add collision to a .tmx map (tiled map) if the game is state based? Please help! If you need the source I'll tell you in the comments. Here's the tutorial I used: http://slick.cokeandcode.com/wiki/doku. ... _tutorials

_________________
http://ReinventGaming.com/


Last edited by leosiden on Thu Jul 05, 2012 4:47 pm, edited 1 time in total.

Top
 Profile  
 
PostPosted: Thu Jul 05, 2012 1:27 pm 
Offline

Joined: Wed Feb 15, 2012 10:17 am
Posts: 11
The methods are exactly the same in a state based game, as it is in a basic game.


Top
 Profile  
 
PostPosted: Thu Jul 05, 2012 1:30 pm 
Offline

Joined: Thu Jun 21, 2012 3:27 pm
Posts: 27
BenHolt wrote:
The methods are exactly the same in a state based game, as it is in a basic game.

Then why doesn't it work?

_________________
http://ReinventGaming.com/


Top
 Profile  
 
PostPosted: Thu Jul 05, 2012 4:42 pm 
Offline

Joined: Mon May 07, 2012 11:36 pm
Posts: 93
You might need to post the relevant pieces of code for your collision stuff, or describe with a bit more detail as to what exactly doesn't work.


Top
 Profile  
 
PostPosted: Thu Jul 05, 2012 4:48 pm 
Offline

Joined: Thu Jun 21, 2012 3:27 pm
Posts: 27
AtomizerZero wrote:
You might need to post the relevant pieces of code for your collision stuff, or describe with a bit more detail as to what exactly doesn't work.

I updated the post.

_________________
http://ReinventGaming.com/


Top
 Profile  
 
PostPosted: Thu Jul 05, 2012 5:17 pm 
Offline

Joined: Mon May 07, 2012 11:36 pm
Posts: 93
Ok, so I just swapped one of my games which I was making using that same tutorial from basicgame to statebasedgame, and it worked fine. What exactly doesn't work?


Top
 Profile  
 
PostPosted: Thu Jul 05, 2012 5:23 pm 
Offline

Joined: Thu Jun 21, 2012 3:27 pm
Posts: 27
AtomizerZero wrote:
Ok, so I just swapped one of my games which I was making using that same tutorial from basicgame to statebasedgame, and it worked fine. What exactly doesn't work?

The player doesn't move. He's just stuck in the corner. I will make a new project and try again from scratch. If It works I'll try to find what i did wrong.

_________________
http://ReinventGaming.com/


Top
 Profile  
 
PostPosted: Thu Jul 05, 2012 5:29 pm 
Offline

Joined: Mon May 07, 2012 11:36 pm
Posts: 93
Is it the player image that doesn't move or is it the polygon box that doesn't move or is it both?

Without seeing the code you have so far, it'll be pretty difficult to help.


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

All times are UTC


Who is online

Users browsing this forum: No registered users and 3 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