no colisionable Moving entity

Mods, guides how to use and install mods go right in here.
Post Reply
kingsuas
Posts: 6
Joined: 18 Mar 2013, 04:02

Post » 24 Jul 2014, 00:50

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)

User avatar
I LÖVE LUA
Posts: 222
Joined: 12 Aug 2013, 13:19

Post » 24 Jul 2014, 08:57

Code: Select all

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

User avatar
Turtle95
Posts: 1246
Joined: 21 Mar 2012, 21:48
Contact:

Post » 25 Jul 2014, 03:27

@ILove not really how it is. Try:

Code: Select all

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

User avatar
Sunset_Moth
Posts: 781
Joined: 02 Sep 2012, 23:22
Contact:

Post » 26 Jul 2014, 17:15

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.

User avatar
Turtle95
Posts: 1246
Joined: 21 Mar 2012, 21:48
Contact:

Post » 26 Jul 2014, 23:49

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.

Post Reply