Solarus-Games English Forum

Solarus => Development => Topic started by: Starlock on October 26, 2017, 08:06:15 AM

Title: Can an enemy activate a switch?
Post by: Starlock on October 26, 2017, 08:06:15 AM
I'm trying to make a projectile that activates a switch, but when I put in enemy:overlaps(entity) an error comes up saying that it expects an integer so I'm not sure what to do for this.
Title: Re: Can an enemy activate a switch?
Post by: Christopho on October 26, 2017, 09:30:19 AM
Make sure that your entity parameter is a variable of type entity.