Hello, here's another behaviour I can't quite understand, I'd would be thankful for some guidance.
This is the scenario: There is a tile layer (floor) and a 16x16 pixel block around 120 pixles above it. I want the block to fall down and stop falling as soon as it touches the floor. This is the code in the step event of the block, the only code that object carries actually.
if not (tile_layer_find(10,self.x,self.y)) //10 is the depth of the tiled floor { vspeed = 2; } else { vspeed = 0; } When run in Game Maker 6.1, the block falls down and stops after touching the floor. When using LGM/Enigma, it just hovers. When I change the code by simply remving the "not" part
if (tile_layer_find(10,self.x,self.y)) { vspeed = 2; } else { vspeed = 0; } the block just falls down, through the tiled floor.
I've used the same file for both tests, so I didn't forget to check the tile layer depth. Testing done in Linux Mint 17 64bit and Windows XP 32bit via Virtualbox. Any ideas what is causing this?
|