Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length

 
Advanced search

1057074 Posts in 42936 Topics- by 34883 Members - Latest Member: PTlGhOsT

October 24, 2014, 07:26:25 PM
TIGSource ForumsDeveloperTechnical (Moderators: Glaiel-Gamer, ThemsAllTook)Best way to do a platformer
Pages: [1]
Print
Author Topic: Best way to do a platformer  (Read 767 times)
Alien94
Level 0
*


View Profile Email
« on: May 18, 2013, 09:39:43 AM »

Hi,
for the last two weeks i'm thinking about a game to do.
It is a platformer and i need collision detection similar to metal slug (to understand).
What is the best method that should i use to do that?
And what about stairs?
Tile based levels?

Thank you!!
Logged
John Sandoval
TIGTumblr Editor
Global Moderator
Level 10
******


big booty 2d cutie


View Profile WWW
« Reply #1 on: May 18, 2013, 09:42:34 AM »

find a copy of game maker and work it out for yourself; there are tons of platforming tutorials on this website alone.

for tile based levels you're probably going to want to use something like ogmo or tiled (game maker's built in level editor is really terrible).
Logged

BRAINGALE
1% inspiration, 99% desperation
Alien94
Level 0
*


View Profile Email
« Reply #2 on: May 18, 2013, 09:44:55 AM »

find a copy of game maker and work it out for yourself; there are tons of platforming tutorials on this website alone.

for tile based levels you're probably going to want to use something like ogmo or tiled (game maker's built in level editor is really terrible).

I don't want to use Game Maker  Smiley
I want to use LibGDX instead  Wink
Logged
SuperDisk
Level 1
*



View Profile Email
« Reply #3 on: May 18, 2013, 09:52:31 AM »

I'm sure LibGDX provides some sort of Rectangle class. Use it to check collisions with other stuff. (Rectangle for player, a rectangle for each tile, etc)
Logged
Alien94
Level 0
*


View Profile Email
« Reply #4 on: May 18, 2013, 09:54:52 AM »

I'm sure LibGDX provides some sort of Rectangle class. Use it to check collisions with other stuff. (Rectangle for player, a rectangle for each tile, etc)

And what tile size do you suggest?
Consider that it will be an android game.
Logged
Polly
Level 4
****


View Profile
« Reply #5 on: May 18, 2013, 10:45:25 AM »

And what tile size do you suggest?

Both 8x8 and 16x16 pixels are popular choices.
Logged
SuperDisk
Level 1
*



View Profile Email
« Reply #6 on: May 18, 2013, 10:52:22 AM »

I chose 42x42 once. Worst decision of my life.

(Just kidding. You can go for anything you want, but as Polly said, multiples of 8 seem to do nicely.)
Logged
Alien94
Level 0
*


View Profile Email
« Reply #7 on: May 18, 2013, 10:54:27 AM »

Ok thank you very much
Logged
Pages: [1]
Print
Jump to:  

Theme orange-lt created by panic