Streaming game development: https://www.twitch.tv/stabyourself Image

no colisionable Moving entity

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

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)

I LÖVE LUA
User avatar
Posts: 170
Joined: 12 Aug 2013, 13:19
Reputation: 21
Contact:

Post » 24 Jul 2014, 08:57

Code: Select all

base=koopa
{
    "kills": false
}


Here it is.

Turtle95
User avatar
Posts: 1275
Joined: 21 Mar 2012, 21:48
Reputation: 122
Contact:

Post » 25 Jul 2014, 03:27

@ILove not really how it is. Try:

Code: Select all

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

bubba_nate
User avatar
Posts: 818
Joined: 02 Sep 2012, 23:22
Reputation: 30
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.

Turtle95
User avatar
Posts: 1275
Joined: 21 Mar 2012, 21:48
Reputation: 122
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.


Return to “Modding”

Who is online

Users browsing this forum: No registered users and 2 guests