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 / Why does it do this?

Author
Message
Zeus
18
Years of Service
User Offline
Joined: 8th Jul 2006
Location: Atop Mount Olympus
Posted: 2nd Mar 2008 23:37 Edited at: 2nd Mar 2008 23:37
In the dog house bug as described by tha_rami it flashes different colors when you select one. I.E. Say you select green, it flashes pink and green. How do I fix this? Here is the code.



Thanks,
~Zeus~

TDK
Retired Moderator
22
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 3rd Mar 2008 19:25 Edited at: 3rd Mar 2008 19:26
Jeez - you are hard work!

Read this (in particular, points 4, 10 and 15):

http://forum.thegamecreators.com/?m=forum_view&t=116024&b=10&p=0

I don't know about others, but in the future I'm going to refuse to help any users who can't be bothered with these simple courtesies.

It's not asking much if you want others to help is it?...

Far too many users are asking questions which cannot be answered and it's getting tiresome asking for more information all the time.

Quote: "Say you select green, it flashes pink and green. How do I fix this?"


HOW ON EARTH ARE WE SUPPOSED TO KNOW!!!

* None of the lines in your code snippets even have any colour commands!
* You use 'texture object 1,8' but we don't know what image 8 is!
* We don't know what 'it' is! Object 1?
* How are we supposed to know what colour$ is used for?

TDK_Man

BN2 Productions
21
Years of Service
User Offline
Joined: 22nd Jan 2004
Location:
Posted: 5th Mar 2008 00:08
I agree with TDK, you need to give more info in the future. However, I know what it was like to be hopelessly lost so I will be a nice guy and help you out.

Your pink and green collision boxes overlap.

Your green box goes from 60,530 to 174,1033
Your pink box goes from 120,530 to 294,1033

Check your other numbers as well. Essentially when you click on green, you are probably clicking on both green AND pink.

But again next time, give us more info and make your code cleaner. I know it is tempting to just show values being added, I had to draw it out and double check the addition, and I can't even test it because I have no idea what you are doing with four random if statements.

Just a tip, y values INCREASE as they go down, your program calls for a screen size that is at least 1033 pixels high. I don't know if you are just doing a large screen size for an important part of you program or if you don't understand the coordinate system. The top left corner of your screen is 0,0. X increases from left to right and y increases from top to bottom. Also, standard screen size in DBC is 640x480.

Your Welcome

Login to post a reply

Server time is: 2025-06-04 02:06:56
Your offset time is: 2025-06-04 02:06:56