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 / dbpro problem #1

Author
Message
BN2 Productions
20
Years of Service
User Offline
Joined: 22nd Jan 2004
Location:
Posted: 16th Feb 2006 01:12
I am trying to use a sprite as a HUD (Heads Up Display) in my game. That part works. At the bottom, there is a space for the user to type in commands. I can't get the input command to display on top of the sprite. Is this even possible.

Ok, to sum up the question: How do you use the input command with sprites and make the text stay on the sprite?

Thanks
WarGoat
20
Years of Service
User Offline
Joined: 19th Sep 2004
Location: Montreal
Posted: 16th Feb 2006 01:20
show us some of you're code, we can help if we don't have something.


Windows XP,pentium IV, 3.0 MGZ, 1024 mb memory, 256 mb ATI Radeon PCIE X700 Pro 'sett squadron back on the assault'
BN2 Productions
20
Years of Service
User Offline
Joined: 22nd Jan 2004
Location:
Posted: 16th Feb 2006 01:22
here is my code the HUD file is 800x600


Image All
18
Years of Service
User Offline
Joined: 30th Dec 2005
Location: Home
Posted: 16th Feb 2006 05:15
Great...uhh...where's the HUD?

FunkyStickmen: Battle of the Races (1%)
BN2 Productions
20
Years of Service
User Offline
Joined: 22nd Jan 2004
Location:
Posted: 16th Feb 2006 05:32
it is just sprite 1. It should be right in front of the screen(mess with the coordinates) It worked for me.
Image All
18
Years of Service
User Offline
Joined: 30th Dec 2005
Location: Home
Posted: 16th Feb 2006 08:40 Edited at: 16th Feb 2006 08:40
I don't have hud.bmp

FunkyStickmen: Battle of the Races (1%)
Grog Grueslayer
Valued Member
19
Years of Service
User Offline
Joined: 30th May 2005
Playing: Green Hell
Posted: 16th Feb 2006 20:37
You can load up a drawing program and just make one (or download an 800x600 image from the internet).


BN2 Productions
20
Years of Service
User Offline
Joined: 22nd Jan 2004
Location:
Posted: 18th Feb 2006 00:05
yeah the file itself isn't important. What I really want to know is 1) Is it possible to use the input command and sprites at the same time and 2) How can I do this if it is possible?
Grog Grueslayer
Valued Member
19
Years of Service
User Offline
Joined: 30th May 2005
Playing: Green Hell
Posted: 18th Feb 2006 04:53
When you use the "input" command it stops all the action till the user hits enter. It's better to make your own input command so you do whatever you want while the user is typing in text. It also allows you to add a "sync" if you have "sync on".

Most of us use "entry$()" when we want a string input.

This code snip uses "entry$()" and has a backspace workaround for 5.9:



Login to post a reply

Server time is: 2024-11-27 06:43:37
Your offset time is: 2024-11-27 06:43:37