AccueilAccueil  FAQFAQ  RechercherRechercher  Dernières imagesDernières images  S'enregistrerS'enregistrer  Connexion  
Le Deal du moment :
Cdiscount : -30€ dès 300€ ...
Voir le deal

 

 Petit problème de "combo kihoha"

Aller en bas 
AuteurMessage
Isaki
Très bonne participation
Isaki


Messages : 157
Localisation : Devant mon pc
Projet Actuel : euh...

Petit problème de "combo kihoha" Empty
MessageSujet: Petit problème de "combo kihoha"   Petit problème de "combo kihoha" EmptySam 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
    }
  }
}
Revenir en haut Aller en bas
 
Petit problème de "combo kihoha"
Revenir en haut 
Page 1 sur 1
 Sujets similaires
-
» Petit problème de plateformes
» Petit probleme ^^'
» Petit Script problème
» petit probleme de variable
» Petit problème de code

Permission de ce forum:Vous ne pouvez pas répondre aux sujets dans ce forum
Forum Le CBNA :: Développement :: Entraide débutants-
Sauter vers: