Checking gel on a tile?

Mods, guides how to use and install mods go right in here.
Post Reply
User avatar
Turtle95
Posts: 1246
Joined: 21 Mar 2012, 21:48
Contact:

Post » 15 Aug 2012, 17:51

I'm currently working on a mod that adds new creative gels. In my latest one, climbing gel, I am having a problem with Mario knowing he's on a tile with gel or a non-gel tile.

Image

I'm not entirely certain how I should do this.

User avatar
BobTheLawyer
Posts: 2232
Joined: 01 May 2012, 21:00

Post » 17 Aug 2012, 14:01

http://pastebin.com/itFCYwXT

Here you go.
Put it in ceil collide.
I hope it works...

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

Post » 17 Aug 2012, 15:51

BobTheLawyer wrote:http://pastebin.com/itFCYwXT

Here you go.
Put it in ceil collide.
I hope it works...
the problem is he's not colliding with the ceiling anymore when climbing gel occurs.

User avatar
BobTheLawyer
Posts: 2232
Joined: 01 May 2012, 21:00

Post » 17 Aug 2012, 16:10

Turtle95 wrote:
BobTheLawyer wrote:http://pastebin.com/itFCYwXT

Here you go.
Put it in ceil collide.
I hope it works...
the problem is he's not colliding with the ceiling anymore when climbing gel occurs.
Then find a way to keep him colliding...

EDIT: Actually you can see if it is a few y spaces above him if you can figure out how....

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

Post » 17 Aug 2012, 20:48

BobTheLawyer wrote:
Turtle95 wrote:
BobTheLawyer wrote:http://pastebin.com/itFCYwXT

Here you go.
Put it in ceil collide.
I hope it works...
the problem is he's not colliding with the ceiling anymore when climbing gel occurs.
Then find a way to keep him colliding...

EDIT: Actually you can see if it is a few y spaces above him if you can figure out how....
I can't. The way I'd check is only usable on map[x][y]["gels"]["top"] which is the default rotation of the gels.

Post Reply