发新话题
打印

会英文的高人进(已解决)

会英文的高人进(已解决)

请帮我翻译下这些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 编辑 ]
节约浏览时间,去掉图片签名.

TOP

能否直接在原文上改?这样也省得我再一个一个粘贴进去。
节约浏览时间,去掉图片签名.

TOP

感激不尽~~~~~~~
节约浏览时间,去掉图片签名.

TOP

引用:
原帖由 starrain 于 2009-5-18 20:09 发表
一定是用来制作游戏的
是这样没错,我在研究高深一点的代码。
节约浏览时间,去掉图片签名.

TOP

基本框架已经完成一半了,不过离完成还有X个月~~~~~~~~~~~
节约浏览时间,去掉图片签名.

TOP

是的,不过这是重新制作的版本了~~~~~~~~~上一个版本BUG太多,于是放弃了。
节约浏览时间,去掉图片签名.

TOP

发新话题