Saturday, May 29, 2021

【GAMEMAKER】Parallax

 Information about object: objPlayer

Sprite: sprStand
Solid: false
Visible: true
Depth: 0
Persistent: false
Parent:
Children
objParalaxPlayer
Mask:
No Physics Object
Keyboard Event for <no key> Key:
set the sprite to sprStand with scale factor 1
set the horizontal speed to 0
Keyboard Event for <Left> Key:
set the horizontal speed to -4
execute code:

sprite_index = sprWalkLeft
Keyboard Event for <Right> Key:
set the sprite to sprWalkRight with scale factor 1
set the horizontal speed to 4

Information about object: objParalaxPlayer
Sprite: sprStand
Solid: false
Visible: false
Depth: 0
Persistent: false
Parent: objPlayer
Children:
Mask:
No Physics Object
Step Event:
set the horizontal speed to objPlayer.hspeed*2

No comments:

Post a Comment