4
0
Fork 0

profondeur des instances

This commit is contained in:
sOlaris38 2020-12-06 12:57:05 +01:00
commit f9dffe68f1
4 changed files with 11 additions and 3 deletions
objects
oMonster
oPlayer

View file

@ -1,4 +1,5 @@
// deplacement monstre
depth = -bbox_bottom;
if (touche == 0) {
if dureeDeplacement != 0 {

View file

@ -5,6 +5,7 @@ keyDown = keyboard_check(vk_down) or keyboard_check(ord("S"));
// Déplacement du joueur
depth = -bbox_bottom;
deplaceHorizontal = keyRight - keyLeft;
deplaceVertical = keyDown - keyUp;