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 / Help with my game

Author
Message
LordAnki
20
Years of Service
User Offline
Joined: 22nd Apr 2004
Location:
Posted: 9th May 2004 21:45
Okay I am currently making my game. I have the title screen/ title menu done. When I test run the game i have to press the directional keys for the menu to come up. Here is my code. (Attached)
Monty87
20
Years of Service
User Offline
Joined: 8th Dec 2003
Location: not very deep in the west country, eng
Posted: 9th May 2004 22:09
yes? looks like you have deliberately coded it that way to me. you see, thats waht happens when you tell it to come up only after youve pressed a key (eg "if downkey()=1"). what's actually wrong?

Monty
The Holy One
20
Years of Service
User Offline
Joined: 12th Jan 2004
Location: Sweden
Posted: 9th May 2004 22:10
You don't have any code that's outside the if's that just paste a image or sprite, so that's why you don't see anything before a key is pressed.
LordAnki
20
Years of Service
User Offline
Joined: 22nd Apr 2004
Location:
Posted: 10th May 2004 01:05
so umm Holy One what should i do then.
The Holy One
20
Years of Service
User Offline
Joined: 12th Jan 2004
Location: Sweden
Posted: 10th May 2004 03:30
You can make an image, load it then pasting it before the loop.
LordDario
21
Years of Service
User Offline
Joined: 26th Apr 2003
Location:
Posted: 10th May 2004 04:13
heh no offense against anyone above, but you are all wrong. If you look at the code closely, he is loading it before the loop. The problem is theres no sync command inside of the loop so the screen isnt able to refresh itself therefore not displaying the titlescreen.
The Holy One
20
Years of Service
User Offline
Joined: 12th Jan 2004
Location: Sweden
Posted: 10th May 2004 04:42
Yup you are right he is loading a bitmap to the screen.

Login to post a reply

Server time is: 2024-11-26 16:31:34
Your offset time is: 2024-11-26 16:31:34