Ablationer Administrateur
Messages : 14995 Localisation : QuébeCanada Projet Actuel : pas trop mourir
| Sujet: nom de ressource Mar 11 Sep 2007 - 21:42 | |
| bon j'ai encore ce problème dont je n'arrive jamais à trouver la solution, comment fait-on pour assigner une ressource(sprite sound object etc) à partir d'une variable ?
par exemple :
objectnumero = "object"+string(variable) instance_create(objectnumero)
pour ainsi dire au jeu de prendre l'object qui se nomme object3 ou object6 etc ...
j'aurais bien pris le ID directement, mais ça cause des problèmes si par exemple on en supprime ou on veut en placer un entre d'autres et etc ... _________________ Yo this is stven, White race. The hs diploma i'm holding in this pic is usually there, my principal put it there in 2008. I'm easily startled by coarse fabrics. only one who stayed in the Burger King Kid's Club after they started charging dues. It's called having a fkng job. All clothes found on google except this crown which doesn't say who designed it |
|
Invité Invité
| Sujet: Re: nom de ressource Mar 11 Sep 2007 - 21:52 | |
| wait 5 minutes pour que je trouve une solution |
|
M@d_Doc Modérateur
Messages : 6600 Localisation : 47°44'8.04 Projet Actuel : aucun
| Sujet: Re: nom de ressource Mar 11 Sep 2007 - 21:59 | |
| - Ablationer a écrit:
- bon j'ai encore ce problème dont je n'arrive jamais à trouver la solution, comment fait-on pour assigner une ressource(sprite sound object etc) à partir d'une variable ?
par exemple :
objectnumero = "object"+string(variable) instance_create(objectnumero)
pour ainsi dire au jeu de prendre l'object qui se nomme object3 ou object6 etc ...
j'aurais bien pris le ID directement, mais ça cause des problèmes si par exemple on en supprime ou on veut en placer un entre d'autres et etc ... execute_string("objectnumero=object"+string(variable)) Ca executera objectnumero=object5 par exemple _________________ Tous les icones de gm utilisables sur le cbna ICI |
|
Invité Invité
| Sujet: Re: nom de ressource Mar 11 Sep 2007 - 22:04 | |
| |
|
M@d_Doc Modérateur
Messages : 6600 Localisation : 47°44'8.04 Projet Actuel : aucun
| Sujet: Re: nom de ressource Mar 11 Sep 2007 - 22:27 | |
| de tête _________________ Tous les icones de gm utilisables sur le cbna ICI |
|
Ablationer Administrateur
Messages : 14995 Localisation : QuébeCanada Projet Actuel : pas trop mourir
| Sujet: Re: nom de ressource Mer 12 Sep 2007 - 2:56 | |
| execute string? lol enfin bon, peu importe, ça marche, merci m@d, et shm en retard lol _________________ Yo this is stven, White race. The hs diploma i'm holding in this pic is usually there, my principal put it there in 2008. I'm easily startled by coarse fabrics. only one who stayed in the Burger King Kid's Club after they started charging dues. It's called having a fkng job. All clothes found on google except this crown which doesn't say who designed it |
|
Contenu sponsorisé
| Sujet: Re: nom de ressource | |
| |
|