GIF IMAGE CONTROL

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

GIF IMAGE CONTROL

Postby rahul7star » Fri Feb 29, 2008 4:05 pm

hI
i am havning my gif image in which whole walk cyle is there , but how to extract those imgae and use with keys control
rahul7star
Regular User
 
Posts: 84
Joined: Fri Aug 17, 2007 11:22 am

Re: GIF IMAGE CONTROL

Postby DevelopmentTeam » Sat Mar 01, 2008 4:14 am

you can use sprite class and setframe function for corresponding action.
User avatar
DevelopmentTeam
Site Admin
 
Posts: 661
Joined: Tue Aug 15, 2006 8:39 am
Location: India

Re: GIF IMAGE CONTROL

Postby rahul7star » Sat Mar 29, 2008 5:39 am

i had distributed my images using tiledLayes throughout the screen , but i want to knw the currnent tile m standing on and to
control that tiles according to my keys,
rahul7star
Regular User
 
Posts: 84
Joined: Fri Aug 17, 2007 11:22 am

Re: GIF IMAGE CONTROL

Postby DevelopmentTeam » Sat Mar 29, 2008 11:21 am

Please check the collision detection class to find where the player stands...
User avatar
DevelopmentTeam
Site Admin
 
Posts: 661
Joined: Tue Aug 15, 2006 8:39 am
Location: India

Re: GIF IMAGE CONTROL

Postby rahul7star » Mon Mar 31, 2008 4:39 pm

hi
how to color those tile that is already traversed , at run time, suppose tile color is red , and when sprite move from that tile , its color should change to yellow
rahul7star
Regular User
 
Posts: 84
Joined: Fri Aug 17, 2007 11:22 am

Re: GIF IMAGE CONTROL

Postby DevelopmentTeam » Mon Apr 07, 2008 12:35 pm

Add another tile with the new color, and using setcell funtion you can change the value of any cell to the frame count of the new one.
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: Yahoo [Bot] and 1 guest

cron