yo there.
a quick, big question.
so
User presses any direction, active object move 1pixel / frame. So it's speed is 1pixel/frame.
Now. When user presses for example UP and LEFT, it moves 1pixel up and 1pixel left. And now it's speed is sqr(2)/frame.
I tried to, use thing like Alt.Values, so, set x position to (Alt.Value A / 100) and similar to pos_y.
And i used to add 100 when user pressed just UP, DOWN, LEFT, RIGHT, and add 70 to x and y when user presses that active object move diagonally. This is not very good because when the playermoves diagonally, the object is a bit "jumping" because X/100 and Y/100 do NOT change at the same time. So simetimes it moves only (for example while pressing UP and LEFT) left and than it moves up and left too, but in the next minute it moves only up. soo. it is not fine.
more likely then not, you're having 3 triggers at the same time; the one for LEFT, the one for TOP, and the one for LEFT AND TOP.
You need to make sure you've got a "upon holding LEFT + (negate) upon holding TOP + (negate) upon holding BOT" and such for every direction
You need to make sure they trigger when one direction and ONLY that one direction is held down. If not, the unit will be moving 1.71 in both directions, instead of .71
yes yes, ive done that before but imho it doest like the broken nubers, does it?
i do like this way:
diagonal:
-Repeat while "Left arrow" is pressed
+Repeat while "Down arrow" is pressed
+(negate)Repeat while "Up arrow" is pressed
---Add 0.7071 to value A
---Add 0.7071 to value B
Straigh movement:
-Repeat while "Left arrow" is pressed
+(negate)Repeat while "Down arrow" is pressed
+(negate)Repeat while "Up arrow" is pressed
---Add 1 to value A
hm
guys can u send me a little "sketch" about your imagination in cca? of mfa? or something like this.
thankyou.
it is the same as mine. Try it with scrolling ang with some detailed backgorund. You'll see what i meant.
Now, if noone have any further ideas then ill have to use that version when diagonalmovement is faser.