Page 1 of 1

no colisionable Moving entity

Posted: 24 Jul 2014, 00:50
by kingsuas
i want to make a no colisionable moving entity, like a koopa, that moves arround the screen but doesnt kill mario, im using Mari0 SE beta
(sorry for bad english ;D)

Re: no colisionable Moving entity

Posted: 24 Jul 2014, 08:57
by I LÖVE LUA

Code: Select all

base=koopa
{
    "kills": false
}
Here it is.

Re: no colisionable Moving entity

Posted: 25 Jul 2014, 03:27
by Turtle95
@ILove not really how it is. Try:

Code: Select all

base=koopa
{
 "mask": [false]
}

Re: no colisionable Moving entity

Posted: 26 Jul 2014, 17:15
by Sunset_Moth
Actually
from the post, they seem to want one that can be ridden
but the title seems like they want it to not touch anything. Also, it should touch the ground, and mask:[false] makes it collide with everything since they aren't masked against eachother.

Re: no colisionable Moving entity

Posted: 26 Jul 2014, 23:49
by Turtle95
bubba_nate wrote:Actually
from the post, they seem to want one that can be ridden
but the title seems like they want it to not touch anything. Also, it should touch the ground, and mask:[false] makes it collide with everything since they aren't masked against eachother.
It's the inverse, bubba. False makes it so that it collides with nothing, and True would make it colliding with everything. For example, in Mario.lua, turning on player collision results in the code for Mario:

Code: Select all

if playercollision then
self.mask[3] = false
end
This causes players to collide with one another.