AccueilAccueil  FAQFAQ  RechercherRechercher  Dernières imagesDernières images  S'enregistrerS'enregistrer  Connexion  
Le Deal du moment :
Jeux, jouets et Lego : le deuxième à ...
Voir le deal

 

 Question variable path ( N'existe pas :( )

Aller en bas 
4 participants
AuteurMessage
red-error
Utilisateur confirmé: Rang ****
red-error


Messages : 1015
Projet Actuel : Question variable path (  N'existe pas :(     ) Bas-machoire2000

Question variable path (  N'existe pas :(     ) Empty
MessageSujet: Question variable path ( N'existe pas :( )   Question variable path (  N'existe pas :(     ) EmptyDim 4 Jan 2009 - 20:11

Bonjour.
Je commence à me mettre aux path, mais j'ai l'impression que ça cloche... :non3:

J'aimerai savoir si c'était possible
de donner dans un path la position pos d'un point n...
Car aucune fonction de base n'a l'air de le permettre...


Dernière édition par red-error le Ven 6 Fév 2009 - 17:18, édité 8 fois
Revenir en haut Aller en bas
red-error
Utilisateur confirmé: Rang ****
red-error


Messages : 1015
Projet Actuel : Question variable path (  N'existe pas :(     ) Bas-machoire2000

Question variable path (  N'existe pas :(     ) Empty
MessageSujet: Re: Question variable path ( N'existe pas :( )   Question variable path (  N'existe pas :(     ) EmptySam 31 Jan 2009 - 18:15

C'est donc impossible d'avoir la position d'un point dans un path. triste
Revenir en haut Aller en bas
nicoulas
*Excellent utilisateur*
nicoulas


Messages : 6030
Localisation : Dordogne
Projet Actuel : Croustaface Tower Defense Question variable path (  N'existe pas :(     ) Panicpr9

Question variable path (  N'existe pas :(     ) Empty
MessageSujet: Re: Question variable path ( N'existe pas :( )   Question variable path (  N'existe pas :(     ) EmptySam 31 Jan 2009 - 18:29

Je suis pas sûr de bien comprendre ce que tu veux faire scratch

Tu peux être plus précis s'il te plaît ? Smile
Revenir en haut Aller en bas
http://blithe.nd.free.fr/
edi9999
Utilisateur confirmé: Rang *****
edi9999


Messages : 2480
Localisation : France
Projet Actuel : theatre flashy

Question variable path (  N'existe pas :(     ) Empty
MessageSujet: Re: Question variable path ( N'existe pas :( )   Question variable path (  N'existe pas :(     ) EmptySam 31 Jan 2009 - 18:39

comme je comprends pas trop ta question, je te conseille de lire ca:

Code:
path_exists(ind) Returns whether a path with the given index exists.
path_get_name(ind) Returns the name of the path with the given index.
path_get_length(ind) Returns the length of the path with the given index.
path_get_kind(ind) Returns the kind of connections of the path with the given index (0=straight, 1=smooth).
path_get_closed(ind) Returns whether the path is closed or not.
path_get_precision(ind) Returns the precision used for creating smoothed paths.
path_get_number(ind) Returns the number of defining points for the path.
path_get_point_x(ind,n) Returns the x-coordinate of the n'th defining point for the path. 0 is the first point.
path_get_point_y(ind,n) Returns the y-coordinate of the n'th defining point for the path. 0 is the first point.
path_get_point_speed(ind,n) Returns the speed factor at the n'th defining point for the path. 0 is the first point.
path_get_x(ind,pos) Returns the x-coordinate at position pos for the path. pos must lie between 0 and 1.
path_get_y(ind,pos) Returns the y-coordinate at position pos for the path. pos must lie between 0 and 1.
path_get_speed(ind,pos) Returns the speed factor at position pos for the path. pos must lie between 0 and 1.

_________________
Mes tutos sur le site: -Tutoriel débutant- Tutoriel intermédiaire
Venez sur http://gameplay.c.la pour des tutos sur mon site.
Utilisez des hébérgeurs gratuits et sans temps d'attente!:
http://willhostforfood.com/
Revenir en haut Aller en bas
http://gameplay.c.la/
jo
*Excellent utilisateur*
jo


Messages : 4879
Localisation : CENSURE T_T
Projet Actuel : FAC

Question variable path (  N'existe pas :(     ) Empty
MessageSujet: Re: Question variable path ( N'existe pas :( )   Question variable path (  N'existe pas :(     ) EmptySam 31 Jan 2009 - 19:46

path_get_point_x(ind,n) Returns the x-coordinate of the n'th defining point for the path. 0 is the first point.
path_get_point_y(ind,n) Returns the y-coordinate of the n'th defining point for the path. 0 is the first point.

ça répond jcrois.

_________________
http://viciousslugs.sup.fr/ <- Des imbéciles en action. Venez visiter, on recherche des lecteurs, des auteurs, et ça paye mal. En fait ça paye pas, mais ya moyen de se marrer.
Revenir en haut Aller en bas
http://psyckho.skyrock.com/
red-error
Utilisateur confirmé: Rang ****
red-error


Messages : 1015
Projet Actuel : Question variable path (  N'existe pas :(     ) Bas-machoire2000

Question variable path (  N'existe pas :(     ) Empty
MessageSujet: Re: Question variable path ( N'existe pas :( )   Question variable path (  N'existe pas :(     ) EmptyMar 3 Fév 2009 - 0:46

J'ai fouillé dans toutes ces fonctions, et oui, je peux avoir les coordonnées d'un point (que l'on pose dans l'édition), mais pas sa position! snif (dans un path, pos de 0 à 1)

Ca me permettrai de faire commencer un path pile sur un point au lieux de calculer une fraction approximative...


Tout comme il n'existe pas de draw_path qui prenne en compte le path_scale et path_orientation, (que l'on doit programmer sois-même),
je me demandait si un pouvait programmer sois-même un chercheur de position (de 0 à 1) d'un point (ceux du path_edition...).

Mais on dirait que (encore une fois), je tape dans le vide. :gniah:
Revenir en haut Aller en bas
Contenu sponsorisé





Question variable path (  N'existe pas :(     ) Empty
MessageSujet: Re: Question variable path ( N'existe pas :( )   Question variable path (  N'existe pas :(     ) Empty

Revenir en haut Aller en bas
 
Question variable path ( N'existe pas :( )
Revenir en haut 
Page 1 sur 1
 Sujets similaires
-
» question variable
» Path
» [Question] mettre variable dans la barre bleu du haut
» Ne pas draw un path si l'objet a depassé ce path
» [résolu] Une variable globale ou une variable locale persistante?

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: