Search found 52 matches
- Fri Aug 23, 2019 10:51 pm
- Forum: Support and Development
- Topic: Code review please
- Replies: 8
- Views: 5896
Re: Code review please
First of all, you defined all of your variables as global, which you probably shouldn't, try using local variables whereever possible (keep in mind the hard-coded limit of 200 locals in any given scope). Second of all, initialization functions should go into the load callback (your filtering setup ...
- Fri Aug 23, 2019 1:59 pm
- Forum: Support and Development
- Topic: Code review please
- Replies: 8
- Views: 5896
Code review please
I just switched from pygame due to lack of hardware acceleration and I'm not sure the best way of coding in lua. If there is anything I should do differently in the code below please let me know. It is just a simple sprite sheet loader that'll display a quad based on what frame number you give. I ma...
- Fri Mar 17, 2017 6:16 pm
- Forum: Support and Development
- Topic: STI with Bump plugin
- Replies: 21
- Views: 29533
Re: STI with Bump plugin
I got it working correctly, sti wasn't adding player to the bump world, only the tileset. Is there a boolean variable for collision on specific tiles I can use? I'm working on a super mario world engine and I need to code the item boxes.
- Fri Mar 17, 2017 4:34 pm
- Forum: Support and Development
- Topic: STI with Bump plugin
- Replies: 21
- Views: 29533
Re: STI with Bump plugin
If you want to make a specific tile collidable, click the tile in your tileset pane, and then under the properties pane on the left, click the + icon, and create a new boolean property called collideable. Set this to true. Once you've added collidable tiles in your tiled map, you need to load them ...
- Fri Mar 17, 2017 4:31 pm
- Forum: Support and Development
- Topic: STI with Bump plugin
- Replies: 21
- Views: 29533
Re: STI with Bump plugin
Well, do you have the bump library loaded? You'll need to get bump.lua, put it into your game's directory, and load it into your game using local bump = require('bump') You can't use STI's bump plugin unless you have bump loaded. lol i thought the bump plugin was the full library. thanks ill try that
- Fri Mar 17, 2017 4:30 pm
- Forum: Support and Development
- Topic: STI with Bump plugin
- Replies: 21
- Views: 29533
Re: STI with Bump plugin
If you want to make a specific tile collidable, click the tile in your tileset pane, and then under the properties pane on the left, click the + icon, and create a new boolean property called collideable. Set this to true. Once you've added collidable tiles in your tiled map, you need to load them ...
- Fri Mar 17, 2017 4:20 pm
- Forum: Support and Development
- Topic: STI with Bump plugin
- Replies: 21
- Views: 29533
Re: STI with Bump plugin
If you want to make a specific tile collidable, click the tile in your tileset pane, and then under the properties pane on the left, click the + icon, and create a new boolean property called collideable. Set this to true. Once you've added collidable tiles in your tiled map, you need to load them ...
- Fri Mar 17, 2017 4:08 pm
- Forum: Support and Development
- Topic: STI with Bump plugin
- Replies: 21
- Views: 29533
Re: STI with Bump plugin
Thank yall very much. Is this all that is needed to interact with player.x and player.y?
- Fri Mar 17, 2017 7:12 am
- Forum: Support and Development
- Topic: STI with Bump plugin
- Replies: 21
- Views: 29533
STI with Bump plugin
I am having a hard time understanding how to use the Bump plugin with Simple Tiled Implementation. The documentation is lacking. I looked through the code of plugins/bump.lua and it seems to check for a custom property of tiles or objects called "collidable". if that is true, how do I inte...
- Wed Mar 15, 2017 1:49 pm
- Forum: Support and Development
- Topic: love.update() vs love.draw()
- Replies: 9
- Views: 9375
Re: love.update() vs love.draw()
yeah hump.gamestate was exactly what I was looking for. thanks so much!