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 / problems with the loading screen

Author
Message
ChozoMufin
20
Years of Service
User Offline
Joined: 19th Apr 2005
Location: Columbus, OH
Posted: 2nd May 2005 05:42 Edited at: 2nd May 2005 05:43
i've created a loading screen/loading bar and it works fine, but when everything is done loading and the screen switches to the game, all the other 2d stuff is hidden. the loading image is a sprite and is screen size and it covers all the 2d stuff, but even when i hide or delete the sprite, the 2d stuff is not there. i dont know why. here is my loading code.

sprite 11 is my loading bar, and sprite 10 is the loading screen. please help.
ChozoMufin
20
Years of Service
User Offline
Joined: 19th Apr 2005
Location: Columbus, OH
Posted: 2nd May 2005 07:22
and heres another unrelated problem. when i shoot my machine gun and it hits the ground, it's supposed to make a bullet hole. but it goes so fast that it sometimes goes through hills, doesn't make a bullethole and keeps going. if there are any better ways to do this other that if object positition t is less than grouind height, please tell me.
ChozoMufin
20
Years of Service
User Offline
Joined: 19th Apr 2005
Location: Columbus, OH
Posted: 2nd May 2005 10:54
heres another thing about my first problem. even if i do take the loading screen out of my coding, the 2d stuff is still hidden.
Sven B
20
Years of Service
User Offline
Joined: 5th Jan 2005
Location: Belgium
Posted: 2nd May 2005 20:39
for the ground height: make sure you use "<" and not "="
like this:

if bullet_y# < get ground height(matrix, bullet_x, bullet_z)
gosub EXPLODE
endif
Link102
20
Years of Service
User Offline
Joined: 1st Dec 2004
Location: On your head, weeeeee!
Posted: 2nd May 2005 23:41
ChozoMufin
20
Years of Service
User Offline
Joined: 19th Apr 2005
Location: Columbus, OH
Posted: 3rd May 2005 07:20 Edited at: 3rd May 2005 08:41
i did sven b, and link 102, thats a tutorial for menus. here is my machine gun code.

this is the code for firing

and this is the code for bulletholes

(bulletnum+200 refers to my bulletholes)
ChozoMufin
20
Years of Service
User Offline
Joined: 19th Apr 2005
Location: Columbus, OH
Posted: 5th May 2005 08:19
by the way i have no idea what i did but i fixed the loading screen problem, i just need help with the bulletholes. and about that, when you shoot the ground it will go so fast that for a millisecond it is below the grouind and moves forward, but then the bullethole will appear a few feet away from where i shot, and it will sometimes go through hills.
Sven B
20
Years of Service
User Offline
Joined: 5th Jan 2005
Location: Belgium
Posted: 7th May 2005 04:26
So your bulletholes are objects?

Anyway, you can always slow your bullets down.
ChozoMufin
20
Years of Service
User Offline
Joined: 19th Apr 2005
Location: Columbus, OH
Posted: 8th May 2005 07:44
yeah, but the plane is going so fast that i really cant afford to, its already pretty slow looking, relatively speaking. and how can you do it other than making objects?? if you know how i would like to know.
Sven B
20
Years of Service
User Offline
Joined: 5th Jan 2005
Location: Belgium
Posted: 8th May 2005 21:17
Maybe you can work out a raycasting program?
ChozoMufin
20
Years of Service
User Offline
Joined: 19th Apr 2005
Location: Columbus, OH
Posted: 9th May 2005 10:30
uh, how do i do that? mesa stupid, and my no know of raycasting.

Who can withstand the awesome power of the almighty Lord of the Butmunch?
Sven B
20
Years of Service
User Offline
Joined: 5th Jan 2005
Location: Belgium
Posted: 9th May 2005 19:11
To make a raycast function my friend: code!

If you can code it, you are the first i know that has ever been able to code a raycast function...
Robot
20
Years of Service
User Offline
Joined: 27th May 2004
Location:
Posted: 10th May 2005 00:16
I think nanobrain coded one as well.

The happenings of tommorow are behind us now
ChozoMufin
20
Years of Service
User Offline
Joined: 19th Apr 2005
Location: Columbus, OH
Posted: 10th May 2005 07:42
see, thats my problem. I DONT KNOW HOW TO! alas. any other ideas?

Who can withstand the awesome power of the almighty Lord of the Butmunch?
Ace Of Spades
20
Years of Service
User Offline
Joined: 6th Mar 2005
Location: Across the ocean
Posted: 10th May 2005 08:45
Quote: " see, thats my problem. I DONT KNOW HOW TO! alas. any other ideas?"


Erm...take a class on problem solving? Could be VERY useful. Anything in program will revolve around the core function of problem solving.

ChozoMufin
20
Years of Service
User Offline
Joined: 19th Apr 2005
Location: Columbus, OH
Posted: 10th May 2005 10:50
um, i would solve that problem, if it was a problem i knew how to solve! i dont know anything about raycasting! if it was a problem i knew anything about, then dont you think i would try to fix it? oh, and in case you misinterperated the post that you quoted, the fact that i don't know how to do raycasting IS my problem, i wasn't stating that they had found my problem. so ok then. unless someone can tell me how to od raycasting are there an other ideas of how to do my bulletholes?

Who can withstand the awesome power of the almighty Lord of the Butmunch?

Login to post a reply

Server time is: 2025-05-23 00:01:08
Your offset time is: 2025-05-23 00:01:08