How to make the tiles into a platform, Map problems too!!

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
powerII
Prole
Posts: 11
Joined: Sat Dec 26, 2015 5:05 am

How to make the tiles into a platform, Map problems too!!

Post by powerII »

Hey guys, I was wondering how I could make my character (animated image) stand on the floor like a platform. I've attached the game. Thank you in advance!!

I'm not sure if this is a good way to make a map. I don't know any other ways to make a map that looks nice (other than love.graphics.draw a bunch of rectangles). So my question is, how can I make a map that looks nice?


P.S: the part im stuck on is the player.boundry function (i tried to label it)
Attachments
game (2).love
(7.58 KiB) Downloaded 96 times
:megagrin: :awesome: :crazy: Beginner :megagrin: :3 :awesome:
bobbyjones
Party member
Posts: 732
Joined: Sat Apr 26, 2014 7:46 pm

Re: How to make the tiles into a platform, Map problems too!

Post by bobbyjones »

The best way to make a map is to use tiled and STI. Here is a tutorial here
http://lua.space/gamedev/using-tiled-maps-in-love
To make a player stand on the platform you need some sort of collision. In that tutorial they use box2d. That is a good starting point for now. Eventually you would probably want to use something that doesn't do the physics for you like bump. Which conveniently STI has a bump plugin as well. But there isn't any tutorial for that.
powerII
Prole
Posts: 11
Joined: Sat Dec 26, 2015 5:05 am

Re: How to make the tiles into a platform, Map problems too!

Post by powerII »

Im trying out tiled and the sti file but everytime i load the map (map = sti.new(map.lua)) it says init is nil (in sti.lua)

what should I do????
:megagrin: :awesome: :crazy: Beginner :megagrin: :3 :awesome:
powerII
Prole
Posts: 11
Joined: Sat Dec 26, 2015 5:05 am

Re: How to make the tiles into a platform, Map problems too!

Post by powerII »

Im trying out tiled and the sti file but everytime i load the map (map = sti.new(map.lua)) it says init is nil (in sti.lua)

what should I do????
:megagrin: :awesome: :crazy: Beginner :megagrin: :3 :awesome:
bobbyjones
Party member
Posts: 732
Joined: Sat Apr 26, 2014 7:46 pm

Re: How to make the tiles into a platform, Map problems too!

Post by bobbyjones »

Make sure you call STI.new with a path to your map.lua. you can use the tutorial for reference.
Post Reply

Who is online

Users browsing this forum: Bing [Bot], KIRINGAMES and 6 guests