会英文的高人进(已解决)
请帮我翻译下这些E文。谢谢
if jumping=0 //if u want the imagespeed different then when the object is jumping or not.
{
image_speed=.5
}
if keyboard_check(vk_left) //checks if left arrow key is pushed.
{if pull=0 //checks if pull=1 so the sprite does not turn around.
{image_xscale=-1} //sets the player faceing left.
else
image_xscale=1
if jumping=0 and push=0 and pull=0 //checks if player is in the air or not and if the player is pushing in an object.
{
sprite_index=Walk}
if jumping=1 //checks if player is in the air.
{sprite_index=Jump}
if place_free(x-2,y) //checks if the next movement is free of collision.
{
x-=2}}
if keyboard_check_released(vk_left) //checks if player releases key
{if pull=0 //checks if pull=1 so the sprite does not turn around.
{image_xscale=-1} //sets the player faceing left.
else
image_xscale=1
if jumping=0
{
sprite_index=Stand}
}
if keyboard_check(vk_right)
{if pull=0 //checks if pull=1 so the sprite does not turn around.
{image_xscale=1} //sets the player faceing right.
else
image_xscale=-1
if jumping=0 and push=0 and pull=0 //checks if player is in the air or not and if the player is pushing in an object..
{
sprite_index=Walk}
if jumping=1 //checks if player is in the air.
{sprite_index=Jump}
if place_free(x+2,y)
{x+=2}}
if keyboard_check_released(vk_right) //checks if player releases key
{if pull=0 //checks if pull=1 so the sprite does not turn around.
{image_xscale=1} //sets the player faceing left.
else
image_xscale=-1
if jumping=0
{
sprite_index=Stand}
}
if keyboard_check_pressed(ord("Z")) and jumping=1 and djump=4
{vspeed=-5 //launches the player in the air
jumping=1
djump=3
image_speed=.5 //allows u to change the imagespeed while ur player is in the air
sprite_index=Jump}
if keyboard_check_pressed(ord("Z")) and jumping=0 //checks if the z key was clicked and weather the player is in the air or not.
{
vspeed=-5 //launches the player in the air
jumping=1
image_speed=.5 //allows u to change the imagespeed while ur player is in the air
sprite_index=Jump}
if jumping=1 and vspeed>0 //checks too see when to set the fall sprite.
{
if image_index>17 //sets it to the image in the sprite for landing
{
image_speed=0}} //doesnt allow the image to change.
[ 本帖最后由 爱的燃火 于 2009-5-20 08:35 编辑 ]