Search found 8 matches

by dpkgluci
Thu Aug 01, 2024 11:14 pm
Forum: Support and Development
Topic: Need help with Bump.lua Filters
Replies: 14
Views: 8699

Re: Need help with Bump.lua Filters

Oh I just named some variables differently. Thanks mrfariator!!
by dpkgluci
Thu Aug 01, 2024 11:08 pm
Forum: Support and Development
Topic: Need help with Bump.lua Filters
Replies: 14
Views: 8699

Re: Need help with Bump.lua Filters

The code crashes, I don't know what to do

the for seems to be malformed, love says

Code: Select all

Error: Syntax error: assets/scripts/player.lua:133: 'in' expected near 'do'
by dpkgluci
Thu Aug 01, 2024 9:55 pm
Forum: Support and Development
Topic: Need help with Bump.lua Filters
Replies: 14
Views: 8699

Re: Need help with Bump.lua Filters

Hi again! I am having a lot of trouble figuring out how to call a function when certain collision type occurrs, I am trying to call the function death() (which I already coded and works) when the player touches the spikes. how is it made most of the time?
by dpkgluci
Thu Aug 01, 2024 8:21 pm
Forum: Support and Development
Topic: Need help with Bump.lua Filters
Replies: 14
Views: 8699

Re: Need help with Bump.lua Filters

I printed it but got nil, and the ground tile above the spike is impossible since the player is standing on top of a spike, it doesnt touch any ground tiles But I resolved this! I used the type (class) property! it's not a custom property, but you can put strings on it, so I marked all my spike boxe...
by dpkgluci
Thu Aug 01, 2024 6:29 pm
Forum: Support and Development
Topic: Need help with Bump.lua Filters
Replies: 14
Views: 8699

Re: Need help with Bump.lua Filters

Hi! This seems pretty understandable, But I'm using STI to get the collisions, and I'm trying to make a filter that somehow returns slide on ground (or everything) and "cross" when player touches a spike local collidablefilter = function(_, other) if other.base == "ground" then r...
by dpkgluci
Thu Aug 01, 2024 12:25 am
Forum: Support and Development
Topic: Need help with Bump.lua Filters
Replies: 14
Views: 8699

Re: Need help with Bump.lua Filters

update: I don't know how to set up the Type attribute of objects, and in the bump.lua docs it seems to need it for filters
do someone understand how to set up type? is it the same as Class in tiled?
by dpkgluci
Wed Jul 31, 2024 10:15 pm
Forum: Support and Development
Topic: Need help with Bump.lua Filters
Replies: 14
Views: 8699

Need help with Bump.lua Filters

Ok I pretty much understand bump.lua completely, except filters. I'm trying to use the libraries STI and Bump.lua to work together and they do! but I want to add spikes to my tilemaps and I thought I add a custom property to the spike tiles like "isSpike" or something and if the player col...