Platform: collide with particular tile=is on floor?

Get help using Construct 2

Post » Thu Jan 28, 2016 3:24 am

Is there a way to trigger "is on floor" when colliding with a particular tile (or various "floor" tiles) and not an entire tile set? I find adding a "floor object" separately is hindering various things, mainly the simplicity of viewing what I'm doing in the editor, and it's difficult to always see what I'm missing to make a "floor" or obstacle.

If this has been accomplished, an example would be awesome! :D
B
25
S
6
G
6
Posts: 265
Reputation: 3,696

Post » Tue Feb 02, 2016 9:31 am

Almost a week since posting, no replies, very few views. I hope I can bump without any issues. :)
B
25
S
6
G
6
Posts: 265
Reputation: 3,696

Post » Tue Feb 02, 2016 10:02 am

I guess you could take the x and y position of the bottom of the sprite and convert it to a tile x and y with the tilemap expressions. Then you could check one tile below that and see what tile it is.
B
92
S
32
G
109
Posts: 5,291
Reputation: 70,993

Post » Tue Feb 02, 2016 12:54 pm

Use mask types (or invisible collision sprite) as collisions instead of the sprites? thats what Im doing for my project.
B
43
S
12
G
14
Posts: 488
Reputation: 10,570

Post » Tue Feb 02, 2016 9:53 pm

FraktalZero wrote:Use mask types (or invisible collision sprite) as collisions instead of the sprites? thats what Im doing for my project.


That's what I've been doing, but after 150 plus layouts it gets tedious and there should be some kind of method of specifying a tile or tiles that can be designated as solid or even platform objects. It strikes me knowing what I know that it IS possible, but I lack the general skill to just do it, it would take a month or so of reviewing old code, experimenting, and implementing it without bugs. Surly there is someone here more familiar with the processes involved.
B
25
S
6
G
6
Posts: 265
Reputation: 3,696


Return to How do I....?

Who is online

Users browsing this forum: ignaciosimo, nickar and 37 guests

cron