Board logo

标题: 会英文的高人进(已解决) [打印本页]

作者: 爱的燃火    时间: 2009-5-18 10:21     标题: 会英文的高人进(已解决)

请帮我翻译下这些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 编辑 ]
作者: starrain    时间: 2009-5-18 10:33

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

2.检查是否左键被按了

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

4.设置角色面向左

5.如果角色在推一个东西,检查他是否在空中
作者: starrain    时间: 2009-5-18 10:40

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

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

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

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

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

10.设置角色面向右
作者: 爱的燃火    时间: 2009-5-18 10:53

能否直接在原文上改?这样也省得我再一个一个粘贴进去。
作者: ≮蠢蛋殿下≯    时间: 2009-5-18 11:20

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    时间: 2009-5-18 11:32

回头发现CD君做好了 加分!
作者: 爱的燃火    时间: 2009-5-18 19:20

感激不尽~~~~~~~
作者: xiaofeimk2    时间: 2009-5-18 19:46

这是段啥代码啊?用哪里的?
作者: starrain    时间: 2009-5-18 20:09

一定是用来制作游戏的
作者: 爱的燃火    时间: 2009-5-19 21:40

引用:
原帖由 starrain 于 2009-5-18 20:09 发表
一定是用来制作游戏的
是这样没错,我在研究高深一点的代码。
作者: starrain    时间: 2009-5-19 22:50

君加油研究,偶努力打经济基础
作者: 爱的燃火    时间: 2009-5-19 23:52

基本框架已经完成一半了,不过离完成还有X个月~~~~~~~~~~~
作者: starrain    时间: 2009-5-19 23:56

这个是ACT吗?
作者: 爱的燃火    时间: 2009-5-20 08:34

是的,不过这是重新制作的版本了~~~~~~~~~上一个版本BUG太多,于是放弃了。




欢迎光临 机战联盟论坛 (http://bbs.srw00.com/) Powered by Discuz! 6.0.0