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 / Why won't my bitmap load?

Author
Message
Purplepickle
13
Years of Service
User Offline
Joined: 4th Jun 2011
Location: Between hopeless and needs improvement..
Posted: 26th Aug 2011 18:56
I have tried this so many times, It is in the media folder, it is named correctly why won't this work?



Bob.bmp is in the media folder under bitmaps.

(I chose a simple name)
chafari
Valued Member
18
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 26th Aug 2011 19:05
Try:

Load image "bob.bmp",1
paste image 1,0,0
wait key


Cheers.

I'm not a grumpy grandpa
Purplepickle
13
Years of Service
User Offline
Joined: 4th Jun 2011
Location: Between hopeless and needs improvement..
Posted: 26th Aug 2011 19:10
Yey, there was two dbpro folders it was in I guess the wrong one.
chafari
Valued Member
18
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 26th Aug 2011 19:44
I´m not sure, but you could try loading bitmap get image from bitmap and delete bitmat before DO LOOP.

Cheers.

I'm not a grumpy grandpa
Purplepickle
13
Years of Service
User Offline
Joined: 4th Jun 2011
Location: Between hopeless and needs improvement..
Posted: 26th Aug 2011 21:29
Alright it did load I am makeing a dodge game.



how would I make this but with the arrow keys?
chafari
Valued Member
18
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 26th Aug 2011 21:41
You could use something like that:





Cheers.

I'm not a grumpy grandpa
Purplepickle
13
Years of Service
User Offline
Joined: 4th Jun 2011
Location: Between hopeless and needs improvement..
Posted: 26th Aug 2011 22:08
Alright thanks and how could I make a box that the fish has to stay in? Like bounderies for a collision system.

Wait, what?
chafari
Valued Member
18
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 26th Aug 2011 22:39
Quote: "how could I make a box that the fish has to stay in? Like bounderies for a collision system"


you have to put limits to x,z ...take a look




cheers.

I'm not a grumpy grandpa
Purplepickle
13
Years of Service
User Offline
Joined: 4th Jun 2011
Location: Between hopeless and needs improvement..
Posted: 26th Aug 2011 22:49
How would I apply this to my 2d game?
I understand what you are saying but just for a single image.
Here is my source code


Nice demo btw

Wait, what?
chafari
Valued Member
18
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 26th Aug 2011 23:03 Edited at: 26th Aug 2011 23:21
To do it in 2D, you have to change z for y, and you will have movemens x,y. Something like this piece of code. you can make some changes





Edited- In order the sprite rotate correctly, we have to offset sprite....




cheers.

I'm not a grumpy grandpa
Purplepickle
13
Years of Service
User Offline
Joined: 4th Jun 2011
Location: Between hopeless and needs improvement..
Posted: 26th Aug 2011 23:45
Still since my game is user control based turning the sprite has no effect. I'm saying like a simple box container.
Thank you for your help.

Wait, what?
chafari
Valued Member
18
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 27th Aug 2011 00:37
You are wellcome

Cheers.

I'm not a grumpy grandpa

Login to post a reply

Server time is: 2024-11-24 02:02:22
Your offset time is: 2024-11-24 02:02:22