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)
How to make the tiles into a platform, Map problems too!!
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
How to make the tiles into a platform, Map problems too!!
- Attachments
-
game (2).love
- (7.58 KiB) Downloaded 96 times






-
- Party member
- Posts: 732
- Joined: Sat Apr 26, 2014 7:46 pm
Re: How to make the tiles into a platform, Map problems too!
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.
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.
Re: How to make the tiles into a platform, Map problems too!
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????
what should I do????






Re: How to make the tiles into a platform, Map problems too!
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????
what should I do????






-
- Party member
- Posts: 732
- Joined: Sat Apr 26, 2014 7:46 pm
Re: How to make the tiles into a platform, Map problems too!
Make sure you call STI.new with a path to your map.lua. you can use the tutorial for reference.
Who is online
Users browsing this forum: Bing [Bot], Semrush [Bot] and 4 guests