Search found 2 matches

by o08oo
Sun Apr 05, 2020 8:46 pm
Forum: Support and Development
Topic: HC:remove doesn't work [solved]
Replies: 2
Views: 2194

Re: HC:remove doesn't work

pgimeno wrote: Sun Apr 05, 2020 7:38 pm Welcome to the forums!

Have you tried HC.remove instead of HC:remove?
Thank you, it worked!
by o08oo
Sun Apr 05, 2020 5:33 pm
Forum: Support and Development
Topic: HC:remove doesn't work [solved]
Replies: 2
Views: 2194

HC:remove doesn't work [solved]

I'm trying to clear the scene in order to load another one, but no matter what I try I can't clear the collision objects. I tried for i = 1,#self.walls do self.HC:remove(self.walls[i]) end and the error is HC/init.lua:75: attempt to call method 'bbox' (a nil value) I also tried for i = 1,#self.walls...