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 / SPRITES HOW DO YOU MAKE THEM.

Author
Message
james1980
16
Years of Service
User Offline
Joined: 18th Sep 2002
Location:
Posted: 6th Oct 2002 23:44
HI,
I'm not sure how to make a sprite
but heres my main question.

1. are they made like the ones in
RPG MAKER 2000 whrere all the
animations are on 1 bitmap or are they
on many different files .
2. how would DBpro know how to use them
(hope you can understand this qustion.)
or animate them correctly.
The Darthster
16
Years of Service
User Offline
Joined: 25th Sep 2002
Location: United Kingdom
Posted: 7th Oct 2002 00:31
You can make sprites by putting all the images onto one bitmap. To separate them out, set the current bitmap to the one with all the sprites loaded, then get images for each one.



That code should put the sprites in tiles.bmp into separate images, numbered across then down. The variables are fairly straightforward to understand.

To use the images as sprites, use:



This is useful for animated sprites, because you can just loop the imagenumber and the sprite will animate:



That will loop a sprite from firstimagenumber to lastimagenumber. Hope that helps.
The Darthster
16
Years of Service
User Offline
Joined: 25th Sep 2002
Location: United Kingdom
Posted: 7th Oct 2002 00:35
Oops. In the first code snippet it should be 'get image tilenumber,... ' not 'get image tileno,... ':



Also I forgot to explain that the first number in the 'sprite' command is the sprite number, you'll need to change that if you want more than one sprite.
xtom
16
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Ireland
Posted: 7th Oct 2002 03:23
Also if you have DBPro check out the following commands.

Create animated sprite
play sprite
set sprite frame

Login to post a reply

Server time is: 2019-07-19 08:06:32
Your offset time is: 2019-07-19 08:06:32