Jump to content

View more

Image of the Day

雑魚は多めにして、爽快感重視にしつつ・・・(´・ω・`)
早いとこ、ベースを作って、完成にもっていかないとね。
タイトルもまだ迷ってるだよなぁ。 
#indiedev  #indiegame #screenshotsaturday https://t.co/IwVbswGrhe
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

How can I animate my character in VB ?

4: Adsense

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.


  • You cannot reply to this topic
3 replies to this topic

#1 Anonymous Poster_Anonymous Poster_*   Guests   

Likes

Posted 02 December 1999 - 05:38 AM

I have created a sprite file in PSP 5 and saved it as a bitmap. I also created a mask but now my problem is how do I animate him so the mask dosen't show ? I am unsure of BitBlt and am fairly new to VB and am making a game for fun. All I need to do is animate him with the background where the pink is. Can anyone help me write a routine to do this?!

#2 Woop   Members   

122
Like
Likes
Like

Posted 02 December 1999 - 04:41 AM

I also am new to writing games. My approach (I have warned you you see, I am sure there are better ways) is to create seperate bitmaps for each stage of an animation. Hard work you say, well I guess so.

These could then be collected in a single bitmap file. When you run your program this bitmap could be loaded into an offscreen buffer. Then when you wish to animate, you can just copy the area that contains frame 1 of the animation from the buffer to the screen, then do the same with each frame in turn.

Just a suggestion. As I say there are bound to be different (better?) ways.

Woop


#3 ghowland   Members   

134
Like
Likes
Like

Posted 02 December 1999 - 05:34 AM

Creating an array of sprites is definitely the easiest way to handle this, its fast too, so there arent a lot of disadvantages.

You can also either parse the array from a standard Windows BMP upon loading, or pre-parse it into a data file so that you dont have to do those operations every time you run the game (faster, but you have to keep converting your art when you make changes).

-Geoff


#4 Woop   Members   

122
Like
Likes
Like

Posted 02 December 1999 - 05:38 AM

I hope you're still reading Geoff.

Okay so my reply 'works' but it is probably rather 'amateur'. But then that is my current position.

Could you possibly expand on the 'pre-parse into a data file' comment. I know what parsing is, but what you have mentioned is something I know nothing about. Alternatively if you can suggest anywhere I might be able to read up on this, I would be very appreciative.

Thanks,

Woop





Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.