Search found 17 matches
- Sat Apr 27, 2019 10:53 pm
- Forum: Support and Development
- Topic: [bump.lua] detect a collision only between 2 items
- Replies: 6
- Views: 3902
Re: [bump.lua] detect a collision only between 2 items
I don't understand what I should return in the filter function, when i put "cross" it raises an error
- Sat Apr 27, 2019 10:03 pm
- Forum: Support and Development
- Topic: [bump.lua] detect a collision only between 2 items
- Replies: 6
- Views: 3902
[bump.lua] detect a collision only between 2 items
hi! Let's say I have 4 items in my world item1, item2, item3 and item4. I want to print "Collision between item1 and item2" only when item1 and item2 collide, and not when item1 and item3 collide for example, is there a way to check a specific collision between 2 items from the world with ...
- Mon Apr 15, 2019 12:48 pm
- Forum: Support and Development
- Topic: [bump.lua] world:remove doesn't work
- Replies: 6
- Views: 9849
Re: [bump.lua] world:remove doesn't work
hoo ok now I understand, thank you very much it works perfectly! I
- Mon Apr 15, 2019 11:17 am
- Forum: Support and Development
- Topic: [bump.lua] world:remove doesn't work
- Replies: 6
- Views: 9849
Re: [bump.lua] world:remove doesn't work
Ho ok yes it works this time but with my other items it still doesn't work, here is an exemple of where I want to use world:remove, "tir" means bullet in french, these are some functions that create a bullet each time I press "space" and delete it when the bullet collide. local t...
- Mon Apr 15, 2019 10:18 am
- Forum: Support and Development
- Topic: A bump.lua question
- Replies: 4
- Views: 9548
Re: A bump.lua question
If you don't want your character to collide with the button maybe just don't add it with world:add ?
- Mon Apr 15, 2019 10:02 am
- Forum: Support and Development
- Topic: [bump.lua] world:remove doesn't work
- Replies: 6
- Views: 9849
Re: [bump.lua] world:remove doesn't work
First thank you for your answer. I have only this at the top of my code local red = {x=120, y=300, w=30, h=50, vx=0, vy=0, jump=false} But I don't understand why it doesn't work, I also tried this inside love.keypressed as a test and it still doesn't work : test = {x=0,y=0,w=10,h=10} if key == "...
- Sun Apr 14, 2019 5:23 pm
- Forum: Support and Development
- Topic: [bump.lua] world:remove doesn't work
- Replies: 6
- Views: 9849
[bump.lua] world:remove doesn't work
Hi! I'm using the collision library bump.lua and everything works well except world:remove, I can't remove any items from my world and I have the following error message "item table must be added to the world before getting its rect. Use world:add." but i have already used world:add to add...