Search found 1 match

by mrcpj1998
Mon Feb 02, 2015 5:42 pm
Forum: Libraries and Tools
Topic: Simple Tiled Implementation - STI v1.2.3.0
Replies: 915
Views: 838480

Re: Simple Tiled Implementation - STI v0.9.7

If i understood the change correctly, wouldn't this work? if type(a:getUserData()) == "table" then if a:getUserData().object.type == "Spike" then changeHealth(true, b:getUserData().object.damage) end end But this give me an error: attempt to index field 'object' a nil value