关于碰撞的问题,急
gamemaker吧
全部回复
仅看楼主
level 10
tatakaΩ 楼主
问题1:为什么无法发生碰撞了
物体1:
Information about object: ball3
Sprite: <no sprite>
Solid: false
Visible: true
Depth: 0
Persistent: false
Parent: ball_father
Mask: <same as sprite>
Create Event:
set the sprite to ball1 with subimage 16 and speed 0
set variable sp to 7
set variable sub to 15
物体1的父对象:
Information about object: ball_father
Sprite: <no sprite>
Solid: false
Visible: true
Depth: 0
Persistent: false
Parent: <no parent>
Mask: <same as sprite>
Collision Event with object biota_father:
for other object: bounce precisely against all objects
Keyboard Event for <no key> Key:
start moving in directions 000010000 with speed set relative to 0
Keyboard Event for A-key Key:
start moving in directions 000100000 with speed set to sp
set the sprite to ball1 with subimage sub+2 and speed 0
Keyboard Event for D-key Key:
start moving in directions 000001000 with speed set to sp
set the sprite to ball1 with subimage sub
+3
and speed 0
Keyboard Event for S-key Key:
start moving in directions 010000000 with speed set to sp
set the sprite to ball1 with subimage sub+1 and speed 0
Keyboard Event for W-key Key:
start moving in directions 000000010 with speed set to sp
set the sprite to ball1 with subimage sub and speed 0
物体3:
Information about object: biota_father
Sprite: biota_1_4
Solid: false
Visible: true
Depth: 0
Persistent: false
Parent: <no parent>
Mask: <same as sprite>
Step Event:
execute code:
{
mp_linear_step(ball_father.x,ball_father.y,3,1)
}
scale the sprite with 1 in the xdir, 1 in the ydir, rotate over self.direction+75, and no mirroring
Collision Event with object ball3:
bounce precisely against all objects
我想要物体1和物体3碰撞并反弹,但发现没效果,求解
2015年08月06日 09点08分 1
level 10
tatakaΩ 楼主
忘了把一楼给度娘了[汗]
上面这个问题我比较急
还有一个比较难的问题
2015年08月06日 09点08分 2
level 10
tatakaΩ 楼主
问题2:我想让整个游戏画面倾斜,要怎么做
2015年08月06日 10点08分 3
level 15
问题1,既没有精灵也没有mask的实例不参与碰撞检测
2015年08月06日 15点08分 5
回复
��ֱ֮��
:好像是哦
2015年08月07日 00点08分
level 10
tatakaΩ 楼主
[无效] http://pan.baidu.com/s/1o6BYlp4,我把错误的部分提取出来,碰撞已经可以了,但是还是无法反弹,我发了原版还没改过的,万望修改
2015年08月08日 07点08分 7
level 15
我改了一下你看看
链接: [无效] http://pan.baidu.com/s/1gdFApkZ 密码: 2dkd
2015年08月08日 11点08分 8
1