Hello the I need help geting a animatedsprite to play inside a Click function?
for Some reason here go a video.
http://www.youtube.com/watch?v=HtrvO5BCrmU&feature=youtu.be
// work can be carried out by the GDK
while ( LoopGDK ( ) )
{ // this is what I want it to play in inside the menu function
for(int i= 1; i < 10; i++)
{
dbCreateAnimatedSprite(5,"Ryua.png",10,1,5);
dbSprite(5,50,299,5);
dbPlaySprite(5,1,10,60);
}
if(dbDownKey() == 1)
{
dbSetSpriteFrame(6,10);
}
/*
if(dbUpKey() == 1)
{
dbSetSpriteFrame(5,9);
}
else
{
dbSetSpriteFrame(5,1);
}
*/
// see the animation sprite is not seem to be moving inside of the menu when it click what
// is the cause of the problem?
//It been so long since I work with DarkGDK
//I have to click on it before it move, it move very slow
dbSprite(3,dbMouseX(),dbMouseY(),3);
if(dbMouseClick() == 1)
{
dbPlayMusic(1);
dbStopMusic(2);
dbHideSprite(1);
dbHideSprite(2);
dbHideSprite(3);
dbText(0,0,"Welcome the Game Is Update");
dbLoadImage("stage.jpg",4);
dbSprite(4,0,0,4);
}
if(dbEscapeKey())
break;
dbSync();
}
dbDeleteImage(1);
dbDeleteImage(2);
dbDeleteImage(3);
dbDeleteImage(4);
dbDeleteImage(5);
return;
}
the legendary master