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 / 2d sprites on the screen

Author
Message
Guhill The friendly one
20
Years of Service
User Offline
Joined: 12th Jun 2004
Location: The fourth demension
Posted: 12th Jun 2004 23:06
Why can't I get 2d sprites on the screen in Darkbasic Pro. First I type Load Bitmap "Filename.bmp",1 . Then I type, get image left,top,right,bottom. Then I type, sprite 1,x,y,1. Why doesn't this work? It worked on Darkbasic.

Gloating Guhill
Guhill The friendly one
20
Years of Service
User Offline
Joined: 12th Jun 2004
Location: The fourth demension
Posted: 12th Jun 2004 23:33
Maybe I should put this in the [i]2d all the way part of the forums.

Gloating Guhill
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 13th Jun 2004 00:00
When you load a bitmap, that new bitmap becomes the current bitmap where all rendering will take place unless you switch back to the display bitmap

Use the command 'SET CURRENT BITMAP 0' after you have grabbed the image and it should work Ok.

*** Coming soon - Network Plug-in - Check my site for info ***
For free Plug-ins, source and the Interface library for Visual C++ 6, .NET and now for Dev-C++ http://www.matrix1.demon.co.uk

Login to post a reply

Server time is: 2024-11-26 20:21:28
Your offset time is: 2024-11-26 20:21:28