Bonjour, j'ai créé un sprit mais les images défilent trop rapidement alors que je ne suis qu'à 1:
Comment faire pour lui donner une vitesse inférieur à 1, car j'ai essayé quelques trucs mais je n'ai rien trouvé a part rajouter des images.
(mon sprit à 8 images en fonctionnement.)
Code:
int Speed1 = 1;Code:
public void Animate()
{
if (this.Animation)
{
this.FrameColumn += this.Speed1;
if (this.FrameColumn>8)
{
this.FrameColumn = 2;
this.Animation = false;
}
}
else
{
this.FrameColumn -= this.Speed1;
if (this.FrameColumn<2)
{
this.FrameColumn = 2;
this.Animation = true;
}
}
}(mon sprit à 8 images en fonctionnement.)
Aucun commentaire:
Enregistrer un commentaire