Petit problème de "combo kihoha" Hitskin_logo Hitskin.com

Ceci est une prévisualisation d'un thème de Hitskin.com
Installer le thèmeRetourner sur la fiche du thème



AccueilAccueil  FAQFAQ  RechercherRechercher  Dernières imagesDernières images  S'enregistrerS'enregistrer  ConnexionConnexion  
-14%
Le deal à ne pas rater :
Smartphone Xiaomi Redmi Note 13 Pro – 6,67″ 8 Go/256 Go, Noir
174.99 € 202.67 €
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 =D
» Petit probleme ^^'
» petit problème de menu..
» Petit Script problème
» petit probleme de variable

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: