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.

Newcomers DBPro Corner / Newb in distress

Author
Message
DumbNewbee
21
Years of Service
User Offline
Joined: 16th Jul 2003
Location: United States
Posted: 17th Jul 2003 03:23

I think that, that is how to take a sprite (in a 2d game) and put it into frames but im not quite sure how,
So my real Question is, how do u take a sprite and divide it up into frames so i can anitmate it
ReD_eYe
21
Years of Service
User Offline
Joined: 9th Mar 2003
Location: United Kingdom
Posted: 17th Jul 2003 10:22
that look about right depending on your image size and how many images you want to get from it, at the moment your trying to get 11 images. the use the:
sprite spritenumber,spritex,spritey,imagenumber
to make,position and change the image of the sprite

You know whats weird???
Donald duck never wore pants, yet everything time he got out of the shower he put a towel around his waist...
Whats with that???
JamesBlond
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: Germany
Posted: 17th Jul 2003 15:47
Try this one:
CREATE ANIMATED SPRITE Sprite Number, Filename, Across, Down, Image Number

Smile and be happy, things could be worse!
So I smiled and was happy, and things got worse...
Magpie
21
Years of Service
User Offline
Joined: 16th Jul 2003
Location: Otherland! Cos it rocks!
Posted: 17th Jul 2003 19:19
If that's how you create an animated sprite, how come it only specifies one filename? Or am I missing an obvious joke?


IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 17th Jul 2003 20:16
No, he's right.

What you do is lay out all your images in a grid on a single bitmap. You then load that bitmap into an image, then use the CREATE ANIMATED SPRITE command to tell DBPro how many images are in the grid (across then down).

Your images are laid out like this:
01 02 03 04 05
06 07 08 09 10
11 12 13 14 15

Login to post a reply

Server time is: 2024-11-24 22:34:29
Your offset time is: 2024-11-24 22:34:29