|
dev.gamez.lv Latvian Game Developers Community
|
View previous topic :: View next topic |
Author |
Message |
N3cro
Joined: 28 May 2008 Posts: 31 Location: Latvia
|
Posted: Thu Sep 11, 2008 9:32 pm Post subject: Draw an non-existing sprite |
|
Kompiējot GM7 spēļu veidošanas programmā man izmet šādu rindu:
Code: | ERROR in
action number 1
of Draw Event
for object menuCharacter:
Trying to draw non-existing sprite. |
Viss ,kas man ir tajā Draw Event'ā ir šis :
Code: | draw_sprite(sprite_index,-1,x,y);
draw_set_halign(fa_center);
draw_text(x,y+sprite_height+6,charname);
draw_set_halign(fa_left); |
Un es tur neredzu neko nepareizu .. lūdzu palīdziet , jo šis bugs man nostoppēja manu spēli pa visu vasaru _________________ Es nelietoju narkotikas-es esmu narkotika |
|
Back to top |
|
|
snake5 Indago dalībnieks
Joined: 27 Jun 2007 Posts: 2590
|
Posted: Thu Sep 11, 2008 10:06 pm Post subject: |
|
tas ir vnk...
sagatavojies, pirms lasi tālāk, jo tas ne tuvu nebija darbs vasarai:
tu objektam, kas izsauc attiecīgo koda gabalu, neizvēlējies spraitu.
tikko testējot, es dabūju tieši to pašu erroru tieši tā.
_________________ "There are two choices here: "looks good" and "realism"." -- Paul Nettle |
|
Back to top |
|
|
N3cro
Joined: 28 May 2008 Posts: 31 Location: Latvia
|
Posted: Fri Sep 12, 2008 2:56 pm Post subject: |
|
Code: | draw_sprite(sprite_index,-1,x,y);
|
Tu domā ka es neieliku sprite indexu pie variable, pārbaudīju dzēsot šo daļu viss strādā bet man pazūd spriti manā character chooser'ā respektīvi es vairs nevaru izvēlēties čaru. _________________ Es nelietoju narkotikas-es esmu narkotika |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|