see if you put an event that when the BOX collides with the wall adds 1 to a variable X. If you do it you will realize that when you go with the BOX against the wall the value of the variabe does not rise by one and then it stops but it also rises by 3/4 units if I hold down the key to send the box to the bottom <img src="{SMILIES_PATH}/icon_neutral.gif" alt=":|" title="Neutral">
Some comments about that remark.
Of course that's what is gonna happen. It is impossible to stop exactly there where the wall is.
For 1 reason: You are Human.
The 8direction stops at solids as follow. When it overlaps a solid, it pushes the sprite back to from where it came from until it is not overlapping the solid no more. The famous Push-Out-Off_Solid_Routine.
So what happens. It hits the wall. The push out happens. You are still pressing the key, so it starts accelerating again. You literally push it back into the solid. It hits the wall. The push out happens again. And so on, for a few ticks.
Set up that construction that you describe, run up against the wall, see the variable go up every time you press the key when just leaning against the wall.
Still dont believe me ?
Set the acceleration to ridiculous high. Now the variable counts only 1 collision when you run in to the wall. But, the sprite ends up way off the wall. Meaning, the push-out had to push it out to much.
Set the acceleration back 600. Set the Deceleration to 12 or so. Now move towards the wall. But lift your finger before it hits the wall. When it now hits the wall, that variable is registering only 1 collision. Prove that it is your finger and only your finger.
Do i like this behaviour? No, not at all. Can it be changed ? I dont think so.
Some things happen before the start of a tick. Other things happen after the end of the tick.
The push-out happens before the start of the tick, because you need the position of that sprite in all the events.
The acceleration (unattended behavior thing) happens after the end of the tick, before the drawings.
Is it easy to work around? Nope, not that i know. But, hey, i am for sure not a c2 pro.
You can limit the keys, like in this example.
And if you are careful with positions and sizes, you can even snap to a pixel, as in this example.
https://www.dropbox.com/s/ecbn35mqsnln4 ... .capx?dl=0
But i dont think that it is totally flawless.
Bottom line ....
If you want pixel perfect games, you better might forget making video games. Those games are linked to a frame rate, and the sample rate that comes with it.
Second bottom line.
When you need a pixel perfect game, you are better of scripting EVERYTHING. You can not use pre-made behaviours at all. And i can not help you with that. Really sorry (4 myself).
Edit: i see that there are new posts, posting anyway.