AccueilAccueil  FAQFAQ  RechercherRechercher  Dernières imagesDernières images  S'enregistrerS'enregistrer  Connexion  
Le deal à ne pas rater :
Réassort du coffret Pokémon 151 Électhor-ex : où l’acheter ?
Voir le deal

 

 Changer un path pendant le jeu

Aller en bas 
2 participants
AuteurMessage
Dranorck
Utilisateur confirmé: Rang *
Dranorck


Messages : 221
Localisation : la ou il ne faut pas
Projet Actuel : Virtual LGe

Changer un path pendant le jeu Empty
MessageSujet: Changer un path pendant le jeu   Changer un path pendant le jeu EmptyMer 30 Avr 2008 - 10:58

Hat Le CBNA
Es-ce qu'il existe des variables pour ajouter ou modifier des points d'un path. Pour que je puisse qu'un point du path soit le x y de mon personnage?

_________________
Virtual Laser Gam Evolution en cours de programmation.
Mplay+Ultimate 3d= Que du bon!
Revenir en haut Aller en bas
M@d_Doc
Modérateur
M@d_Doc


Messages : 6600
Localisation : 47°44'8.04
Projet Actuel : aucun

Changer un path pendant le jeu Empty
MessageSujet: Re: Changer un path pendant le jeu   Changer un path pendant le jeu EmptyMer 30 Avr 2008 - 11:36

l'aide de GM a écrit:
It is possible to create paths and to add points to paths. However, never change a path that is being used by an instance. This can lead to unexpected results. The following functions exist:

path_set_kind(ind,val) Sets the kind of connections of the path with the given index (0=straight, 1=smooth).
path_set_closed(ind,closed) Sets whether the path must be closed (true) or open (false).
path_set_precision(ind,prec) Sets the precision with which the smooth path is calculated (should lie between 1 and Cool.
path_add() Adds a new empty paths. The index of the path is returned.
path_delete(ind) Deletes the path with the given index.
path_duplicate(ind) Creates a duplicate copy of the path with the given index. Returns the index of the copy.
path_assign(ind,path) Assigns the indicated path to path ind. So this makes a copy of the path. In this way you can easily set an existing path to a different, e.g. new path.
path_append(ind,path) Appends the indicated path to path ind.
path_add_point(ind,x,y,speed) Adds a point to the path with the given index, at position (x,y) and with the given speed factor. Remember that a factor of 100 corresponds to the actual speed. Lower values mean slowing down and higher mean speeding up.
path_insert_point(ind,n,x,y,speed) Inserts a point in the path with the given index before point n, at position (x,y) and with the given speed factor.
path_change_point(ind,n,x,y,speed) Changes the point n in the path with the given index to position (x,y) and the given speed factor.
path_delete_point(ind,n) Deletes the point n in the path with the given index.
path_clear_points(ind) Clears all the points in the path, turning it into an empty path.
path_reverse(ind) Reverses the path.
path_mirror(ind) Mirrors the path horizontally (with respect to its center).
path_flip(ind) Flips the path vertically (with respect to its center).
path_rotate(ind,angle) Rotates the path counter clockwise over angle degrees (around its center).
path_scale(ind,xscale,yscale) Scales the path with the given factors (from its center).
path_shift(ind,xshift,yshift) Shifts the path over the given amount.
path_add_point(tonpath,x,y,vitesse)

_________________
Changer un path pendant le jeu Control-commentTous les icones de gm utilisables sur le cbna ICI  Changer un path pendant le jeu Main1-change-sprite
Revenir en haut Aller en bas
http://www.lecbna.org
Invité
Invité




Changer un path pendant le jeu Empty
MessageSujet: Re: Changer un path pendant le jeu   Changer un path pendant le jeu EmptyMer 30 Avr 2008 - 14:03

Revenir en haut Aller en bas
Dranorck
Utilisateur confirmé: Rang *
Dranorck


Messages : 221
Localisation : la ou il ne faut pas
Projet Actuel : Virtual LGe

Changer un path pendant le jeu Empty
MessageSujet: Re: Changer un path pendant le jeu   Changer un path pendant le jeu EmptyMer 30 Avr 2008 - 21:34

Merci pour les réponses gnii

_________________
Virtual Laser Gam Evolution en cours de programmation.
Mplay+Ultimate 3d= Que du bon!
Revenir en haut Aller en bas
Contenu sponsorisé





Changer un path pendant le jeu Empty
MessageSujet: Re: Changer un path pendant le jeu   Changer un path pendant le jeu Empty

Revenir en haut Aller en bas
 
Changer un path pendant le jeu
Revenir en haut 
Page 1 sur 1
 Sujets similaires
-
» créer parcours (path) avec la souris pendant le jeux
» Changer le centre pendant le jeu.
» changer la view pendant le jeu [résolu: grand merci à SPLN]
» Comment changer de sprite en fonction d'un path ?
» Ne pas draw un path si l'objet a depassé ce path

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: