Information about object: objItemControl
Sprite:
Solid: false
Visible: true
Depth: 0
Persistent: false
Parent:
Solid: false
Visible: true
Depth: 0
Persistent: false
Parent:
Children
objSword
objHammer
objMoney
objGun
Mask:
objSword
objHammer
objMoney
objGun
No Physics Object
Create Event:
set variable global.Holding to 0
set variable PickedUp to 0
Step Event:
if expression PickedUp=1 is true
jump to position (mouse_x-self.sprite_width/2,mouse_y-self.sprite_height/2)
if right mouse button is pressed
align position to a grid with cells of 32 by 32 pixels
if relative position (0,0) is collision free for All objects
if expression x=256 and y=64 and ObjectType!=1 is true
exit this event
set variable PickedUp to 0
set variable global.Holding to 0
align position to a grid with cells of 32 by 32 pixels
Mouse Event for Left Button:
if expression global.Holding=1 is not true
set variable PickedUp to 1
set variable global.Holding to 1
Information about object: objSwordSprite: sprSword
Solid: false
Visible: true
Depth: 0
Persistent: false
Parent: objItemControl
Children:
Mask: No Physics ObjectCreate Event:set variable ObjectType to 1call the inherited event of the parent objectInformation about object: objHammerSprite: sprHammer
Solid: false
Visible: true
Depth: 0
Persistent: false
Parent: objItemControl
Children:
Mask: No Physics ObjectCreate Event:set variable ObjectType to 2call the inherited event of the parent objectInformation about object: objMoneySprite: sprMoney
Solid: false
Visible: true
Depth: 0
Persistent: false
Parent: objItemControl
Children:
Mask: No Physics ObjectCreate Event:set variable ObjectType to 2call the inherited event of the parent objectInformation about object: objGunSprite: sprGun
Solid: false
Visible: true
Depth: 0
Persistent: false
Parent: objItemControl
Children:
Mask: No Physics ObjectCreate Event:set variable ObjectType to 1call the inherited event of the parent objectInformation about object: objWallSprite: sprWall
Solid: true
Visible: false
Depth: 0
Persistent: false
Parent:
Children:
Mask: No Physics Object
No comments:
Post a Comment