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.

DarkBASIC Discussion / x,y issue (DBC)

Author
Message
hpfan273
18
Years of Service
User Offline
Joined: 19th Jan 2007
Location:
Posted: 20th Mar 2007 03:37
hello... i am using DBC, and i set it so that my character starts at x 32 and y 32... but it won't start there... here is my code:



y won't the thing go to 32,32???

THANKS FOR STOPING AT A RED LIGHT... AND LETTING ME CRASH INTO YOU AT 80 MILES AN HOUR!!!
Quisco DaLuse
18
Years of Service
User Offline
Joined: 3rd Feb 2007
Location: USA
Posted: 20th Mar 2007 05:06
Without knowing how large the "hay" image is, I cannot tell for sure if you simply are covering sprite 1 up, but that is what it looks like you're doing. Try using sprite number 96, for example, instead of 1.

i.e. sprite 96,32,32,1
set sprite 96,1,1

If the "guy" shows up, it is because of the way DBC puts sprites on the screen, with the lowest numbered sprites being placed first, they are "drawn over" by sprites with higher numbers.

Just curious; why are you adding 0 on this line:
sprite a,0+(a-2)*32,0,2 ??

You idiots! You've captured their stunt doubles!
hpfan273
18
Years of Service
User Offline
Joined: 19th Jan 2007
Location:
Posted: 20th Mar 2007 23:34
lol... thanx... it works now... lol... about that... idk... i didn't really think much about it...

THANKS FOR STOPING AT A RED LIGHT... AND LETTING ME CRASH INTO YOU AT 80 MILES AN HOUR!!!

Login to post a reply

Server time is: 2025-05-29 03:57:09
Your offset time is: 2025-05-29 03:57:09