game character selection problem

Forum for J2ME mobile games related topics including programming doubts, books and other resources for J2ME game development

game character selection problem

Postby loles08 » Sun Feb 17, 2008 4:19 am

hi! i'm newbie here... i'm currently developing a mobile adventure game. i have a problem regarding in selecting a character, i have a character selection menu class that has four player, a player class holder where in sprites and their behavior are holded, and the main game canvas.. my problem is i can't load the sprite from player class to the game canvas if i choose a certain player in character selection menu class...
i will greatly appreciated your concern..
loles08
 
Posts: 1
Joined: Sun Feb 17, 2008 4:05 am

Re: game character selection problem

Postby DevelopmentTeam » Mon Feb 18, 2008 3:23 am

In these cases, what we usually do it, create a common class with all static variables which are going to be used in different classes of the program. From the menu class you need to initialize the variable and then form the game class you can use the same variable for your character.
User avatar
DevelopmentTeam
Site Admin
 
Posts: 661
Joined: Tue Aug 15, 2006 8:39 am
Location: India


Return to J2ME Games

Who is online

Users browsing this forum: No registered users and 2 guests

cron