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
物体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碰撞并反弹,但发现没效果,求解