Hi all,i am new to making games on the ds so i need some help.. I making a fruit machine game for the DS with Palib and I have got the reels turning....BUT.... 1.To be able to start them turning with the start button on the image and button A on the DS..(Edit Codes been edited..Got it working with the A button but not the start buton on the image.) 2.How do you get the reels ainimation to stop once you pressed the A button with PA_SpriteAnimPause.. 3.To make them turn randomly so they don't land on the same fruit.. 4.Any help with this is welcome.. :) I put up the source code for you all the have a look and play with it.. Picture.. [imgs]http://img170.imageshack.us/img170/3117/fruitqa3.jpg[/imgs] [code]// Includes // Include for PA_Lib #include <PA9.h> // Converted using PAGfx #include "gfx/all_gfx.c" #include "gfx/all_gfx.h" // Function: main() int main(int argc, char ** argv) { PA_Init(); // Initializes PA_Lib PA_InitVBL(); // Initializes a standard VBL // Load Backgrounds with their palettes ! PA_EasyBgLoad(0, // screen 0, // background number (0-3) bg0); // Background name, used by PAGfx... PA_EasyBgLoad(1, 3, bg1); { // Load the sprite palette, PA_LoadSpritePal(0, // Screen 0, // Palette number (void*)explosion_Pal); // Palette name PA_LoadSpritePal(0, 1, (void*)explosion2_Pal); PA_LoadSpritePal(0, 2, (void*)explosion3_Pal); // Here, we'll load a few similar sprites sprite to animate... at different speed PA_CreateSprite(0, 0,(void*)explosion_Sprite, OBJ_SIZE_32X64,1, 0, 35, 47); PA_CreateSprite(0, 1,(void*)explosion2_Sprite, OBJ_SIZE_32X64,1, 1, 70, 47); PA_CreateSprite(0, 2,(void*)explosion3_Sprite, OBJ_SIZE_32X64,1, 2, 108, 47); PA_StartSpriteAnimEx(0, 0, 0, 7, 5, ANIM_LOOP, 1); PA_StartSpriteAnimEx(0, 1, 0, 7, 5, ANIM_LOOP, 2); PA_StartSpriteAnimEx(0, 2, 0, 7, 5, ANIM_LOOP, 3); while(1) if(Pad.Newpress.A) { { { PA_StartSpriteAnim(0, 0, 0, 7, 5 ); PA_StartSpriteAnim(0, 1, 0, 7, 5 ); PA_StartSpriteAnim(0, 2, 0, 7, 5 ); } // Y } // X }// Pad A { PA_WaitForVBL(); } } return 0; } // End of main() [/code] This post is from -- http://socoder.net/index.php?topic=976