[Resolved] Problem with sprite (it's not visible that is) October 27, 2009 03:32PM | Registered: 14 years ago Posts: 55 |
ML_Image MikuBGData; ML_Background MikuBG; // we declare our background ML_LoadBackgroundFromBuffer(&MikuBGData, &MikuBG, MikuBG_png, 100, 100); // we load the background ML_Image osucircleData; ML_Sprite osucircle;
ML_DrawBackground(&MikuBG); ML_LoadSpriteFromBuffer(&osucircleData, &osucircle, osucircle_png, 100, 300); // we load the sprite ML_LoadSpriteFromBuffer(&osucircleData, &osucircle, osucircle_png, 300, 300); // we load the sprite if (ML_IsWiimoteInSprite(0, &osucircle) && (Wiimote[0].Newpress.A) && (!ML_IsPlayingMP3())) { ML_PlayMP3FromBuffer(clap_mp3, clap_mp3_size); } if (ML_IsWiimoteInSprite(0, &osucircle) && (Wiimote[0].Newpress.A) && (!ML_IsPlayingMP3())) { ML_PlayMP3FromBuffer(clap_mp3, clap_mp3_size); }
Re: Problem with sprite (it's not visible that is) October 27, 2009 09:47PM | Admin Registered: 15 years ago Posts: 5,132 |
Re: Problem with sprite (it's not visible that is) October 27, 2009 10:03PM | Registered: 14 years ago Posts: 55 |