mBlock v5 vs mBlock v3.4.11


#1

Hi all,

Those code blocks work in very different on mBlock V5.0.1 and mBlock V3.4.11.

I just want to make a basic example like that:
-when i press the up arrow, the charachter will turn up(0) direction.
-when i press the down arrow, the charachter will turn down(180) direction.

It works on mBlock v3.4.11 but when i try to do same thing on mBlock 5.0, it works in very different way. My character is turning but also it changes its location. I tried to explain in detail, maybe it may be good if you try the example given below, so you can understand what i mean.

I want it to work as in the second picture. Any idea?


#2

Hi again, i don’t know if it’s the best way but i’ve found a solution and i share it. It works with this way.


#3

The default position is 90°, which is the same for both mBlock 3 and 5. So it may look different if we choose different sprites.