Collision and destroy problems

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
User avatar
Lord Tim
Prole
Posts: 30
Joined: Sun Jul 20, 2008 4:07 am

Collision and destroy problems

Post by Lord Tim »

Well, this is odd. If I have the parenthesis on like so:

Code: Select all

player.joint:setCollideConnected(false)
It gives me the nil value error. Specifically,
[string "objfactory.lua"]:64: attempt to call method 'setCollideConnected' (a nil value)

But if I use it without the parenthesis:

Code: Select all

player.joint:setCollideConnected
It gives me what should happen: (player is the first bit on the next line)

Syntax error: [string "objfactory.lua"]:65: function arguments expected near 'player'

The joint is being created correctly. I can use the rest of the methods in Joint, just not that one. And getAnchors, I think that doesn't work also.
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Google [Bot] and 4 guests