Isaki Très bonne participation
Messages : 157 Localisation : Devant mon pc Projet Actuel : euh...
| Sujet: Petit problème de "combo kihoha" Sam 1 Oct 2011 - 21:44 | |
| Bonsoir, mon problème, c'est que mon playezr lance deux kihoha (attaque à distance) en même temps, mais je ne sais pas comment régler ce problème. Voilà le code : - Code:
-
//DROIT----DROIT----DROIT----DROIT----DROIT----DROIT----DROIT if global.ki>4{ if image_xscale=1{ if kihoha=1{ global.kihoha=true alarm[1]=6 with (instance_create(x+40,y-46,obj_kihoha)){motion_set(0,16)} global.ki-=10 kihoha=2 } } } if global.ki>4{ if image_xscale=1{ if kihoha=2{ global.kihoha=true alarm[1]=6 with (instance_create(x+40,y-46,obj_kihoha)){motion_set(0,16)} global.ki-=10 kihoha=3 } } } if global.ki>4{ if image_xscale=1{ if kihoha=3{ global.kihoha=true alarm[1]=6 with (instance_create(x+40,y-46,obj_kihoha)){motion_set(0,16)} global.ki-=10 kihoha=4 } } } if global.ki>4{ if image_xscale=1{ if kihoha=4{ global.kihoha=true alarm[1]=6 with (instance_create(x+40,y-46,obj_kihoha)){motion_set(0,16)} global.ki-=10 kihoha=5 } } } //GAUCHE----GAUCHE----GAUCHE----GAUCHE----GAUCHE----GAUCHE----GAUCHE if global.ki>4{ if image_xscale=-1{ if kihoha=1{ global.kihoha=true alarm[1]=6 with (instance_create(x-40,y-46,obj_kihoha)){motion_set(180,16)} global.ki-=10 kihoha=2 } } } if global.ki>4{ if image_xscale=-1{ if kihoha=2{ global.kihoha=true alarm[1]=6 with (instance_create(x-40,y-46,obj_kihoha)){motion_set(180,16)} global.ki-=10 kihoha=3 } } } if global.ki>4{ if image_xscale=-1{ if kihoha=3{ global.kihoha=true alarm[1]=6 with (instance_create(x-40,y-46,obj_kihoha)){motion_set(180,16)} global.ki-=10 kihoha=4 } } } if global.ki>4{ if image_xscale=-1{ if kihoha=4{ global.kihoha=true alarm[1]=6 with (instance_create(x-40,y-46,obj_kihoha)){motion_set(180,16)} global.ki-=10 kihoha=5 } } } |
|