Here is the link for my project. It is posted on 4shared shared in a zip file:http://www.4shared.com/zip/QjYf9wtzce/pitzilla.html?
Here's what you need to know to understand the bug:
- Everytime the obstacle is created, there´s a message on the screen: criou dinoobstaculo
-On event 13, i create the number of the obstacle that will appear(set numero_dinoobstaculo to 1).
-On event 19, based on the number 1 for numero_dinoobstaculo, i create the obstacle very high on the screen.
-The event 16 will make the obstacle go down. For every 0.01 seconds, as long as it is not overlapping any block, the obstacle will move down 10 pixels.
-The event 20 is when the obstacle in question("pterodatilo") finally reaches the ground and is overlapping Block(the floor) and is on the move(se_mexendo = true), on my current attempt, i make the object not solid anymore, position it to Block.y + 4(it should be the position i want, overlapping the floor. I have tried + 20, but it still did the same thing) and make it not move(se_mexendo=false)
- I have used this method to create my other obstacle(the dino_obstaculo 0) and it was a sucess, but that obstacle didn´t need to overlap the floor.