when my charactor jumps when you press up,goes left if you press left and right ifyou press right. if you press left or right when hes jumping, he stops half way through the jump and goes down fully, making him go under the line witch is the ground. heres the script for the movment:
When Left arrow/right arrow is pressed
switch to costume 2/1
point in direction -90/90
move ten steps
when up arrow is pressed
switch to costume 3
point in direction 0
move 40 steps
wait 0.5 seconds
move 40 steps
wait 0.5 seconds
switch to costume 4
point in direction 180
move 40 steps
wait 0.5 seconds
move 40 steps
Its a really good script ecept for the problem above. Plz Help
Offline
Ah, yes - the point in direction blocks in those two scripts interfere with each other when you run them at the same time. Instead of using two blocks - point in direction and move x steps for your movement, you should try using the block change x/y by _. Your script will look something like this (very simplified, you can add the switch to costume and other stuff, of course):
[blocks]<when[ right/left ]key pressed>
<change x by( 10/-10
<when[ up ]key pressed>
<change y by( 40
<wait( 0.5 )secsc>
<change y by( -40 [/blocks]
Offline
geckowill wrote:
good but when i press up it just goes left and right not up and down
Are you sure you didn't use a change x by _ block instead of a change y by _ block?
Offline