Retron84
Member
I've got a momentum based movement system set up, and I want to change the momentum variables based on the floor tile underneath the player object.
However, I'm only getting variables from one type of floor tile when multiple floor tiles are in the room.
In one screenshot you can see my code, and in the other you can see the room with my amazing placeholder programmer art. The black area is returning the correct default values, but every other tile is returning the slow tile's values.
The grey "D" area should also return the default values of the parent floor tile object, but it does not, it returns the values of one of the child objects.
This one really has my puzzled. Any suggestions?
However, I'm only getting variables from one type of floor tile when multiple floor tiles are in the room.
In one screenshot you can see my code, and in the other you can see the room with my amazing placeholder programmer art. The black area is returning the correct default values, but every other tile is returning the slow tile's values.
The grey "D" area should also return the default values of the parent floor tile object, but it does not, it returns the values of one of the child objects.
This one really has my puzzled. Any suggestions?
Attachments
-
34.6 KB Views: 2
-
46.7 KB Views: 4