Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / Animated Sprite

Author
Message
Yogz
20
Years of Service
User Offline
Joined: 11th Oct 2004
Location: England
Posted: 10th Jan 2008 21:37
I'm creating a pop up hover menu, and figured I'd use an animated sprite. However, I cannot get the animated sprite to display, whereas if I use a standard image sprite the graphic does display.

Can anyone see where I'm going obviously wrong?



Thanks
Yogz
20
Years of Service
User Offline
Joined: 11th Oct 2004
Location: England
Posted: 11th Jan 2008 02:12
Fixed.
jason p sage
17
Years of Service
User Offline
Joined: 10th Jun 2007
Location: Ellington, CT USA
Posted: 11th Jan 2008 20:42
Can you be more specific? How'd ya fix it mate?

Yogz
20
Years of Service
User Offline
Joined: 11th Oct 2004
Location: England
Posted: 12th Jan 2008 22:31
I misread the "help" documentation for the following command:


dbCreateAnimatedSprite ( 998, "GFX/menu2.png", 113, 140, 997 );


The "X and Y" part of the command (113,140) should really read as "rows, columns". I made the mistake of thinking that you defined the size of each cell of the grid here, but you don't, you define how many cells there are in the picture. So intead of 113,140 I put 5,1 and it now works.

Hope that makes some sense.
jason p sage
17
Years of Service
User Offline
Joined: 10th Jun 2007
Location: Ellington, CT USA
Posted: 14th Jan 2008 05:50
Yes - and it will be a helpful post to someone else following your tracks Thanx for the post!

Login to post a reply

Server time is: 2024-11-17 02:35:03
Your offset time is: 2024-11-17 02:35:03