14 12
发新话题
打印

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

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

请帮我翻译下这些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

1.如果你希望目标跳跃时画面速度不同

2.检查是否左键被按了

3.如果sprite没有转请检查是否pull=1

4.设置角色面向左

5.如果角色在推一个东西,检查他是否在空中

TOP

声明,不一定准确= =。仅供参考。。

6.如果角色在空中则检查

7.当下一个动作是碰撞后的随机?时检查

8.角色发布密码(或拿出钥匙?)时检查

9.如果sprite没有转请检查是否pull=1

10.设置角色面向右

TOP

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

TOP

if u want the imagespeed different then when the object is jumping or not
当图片高速转化时 任务是否移转
checks if left arrow key is pushed
确认方向键中的左键 是否被按下
checks if pull=1 so the sprite does not turn around
确认当PULL=1时 子画面无法跳转

{image_xscale=-1} //sets the player faceing left.
else
image_xscale=1
图像处理性能 =-1 用户设定显示脱离(缺失)
除非 图片处理=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
当移转 推取=0时 确认任务取得(下载)时用户组是否空闲
checks if player is in the air
确认用户组是否空闲
checks if the next movement is free of collision
确认下一活动是空闲或冲突
checks if player releases key
检查用户KEY是否断开
launches the player in the air
使用户空闲
allows u to change the imagespeed while ur player is in the air
当UR用户空闲时允许你高速转变图片
checks if the z key was clicked and weather the player is in the air or not
检查Z键。。。。。。。。。
checks too see when to set the fall sprite
当设置子屏幕下落或停止时请检查
sets it to the image in the sprite for landing
设置图片显示在子屏幕
doesnt allow the image to change.
不允许图片更改
本帖最近评分记录
  • starrain 精神 +10 助人为乐美~~ 2009-5-18 11:33

苏轼是一位优秀的文科宅

TOP

回头发现CD君做好了 加分!

TOP

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

TOP

这是段啥代码啊?用哪里的?
ディー·トリエル命~

TOP

一定是用来制作游戏的

TOP

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

TOP

 14 12
发新话题