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 / text and variables

Author
Message
GameMaker Jason
21
Years of Service
User Offline
Joined: 22nd Nov 2003
Location: UK
Posted: 4th Feb 2004 21:42
how can i get the word Score: to apear with the score integer value next to it using the text command?

just code
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 4th Feb 2004 22:05
You can use the function STR$() to convert a number to a string.

TEXT 0, 0, "Score:" + STR$(Score)

For free Plug-ins, source and the DBPro Interface library for Visual C++ 6 and .NET
http://www.matrix1.demon.co.uk
GameMaker Jason
21
Years of Service
User Offline
Joined: 22nd Nov 2003
Location: UK
Posted: 4th Feb 2004 22:17
is the "keystate" command faster than the "spacekey" type command and is there any pics that show the numbers for the keys?

just code
GameMaker Jason
21
Years of Service
User Offline
Joined: 22nd Nov 2003
Location: UK
Posted: 4th Feb 2004 22:52
how can i use sprite rotate and sprite angle commands to make my sprite face down if the down key is press and left if the left key is pressed and so on?

just code
GameMaker Jason
21
Years of Service
User Offline
Joined: 22nd Nov 2003
Location: UK
Posted: 4th Feb 2004 22:55 Edited at: 5th Feb 2004 00:41


This code works but when i eat the food 6 time it does not reapear any help? please this is really annoying and the code has been updated for a few changes. please help.

just code
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 4th Feb 2004 23:02
Answer in order ...

spacekey and keystate run at the same speed - they check the same thing after all.

If you press the downkey, set the sprite rotation to 180 ...

Perhaps because your display is only 640x480 and you can position the food outside of this range (700x600)

For free Plug-ins, source and the DBPro Interface library for Visual C++ 6 and .NET
http://www.matrix1.demon.co.uk
GameMaker Jason
21
Years of Service
User Offline
Joined: 22nd Nov 2003
Location: UK
Posted: 4th Feb 2004 23:05
i've set it to 800,600,32 using the set display mode command as in the above code

just code
GameMaker Jason
21
Years of Service
User Offline
Joined: 22nd Nov 2003
Location: UK
Posted: 4th Feb 2004 23:08
also the rotate sprite if downkey is pressed just turns the sprite to face the opposite direction. any other sugestions?

just code
CattleRustler
Retired Moderator
21
Years of Service
User Offline
Joined: 8th Aug 2003
Location: case modding at overclock.net
Posted: 4th Feb 2004 23:09


-RUST-
"What the... Mooooooooooo!"
GameMaker Jason
21
Years of Service
User Offline
Joined: 22nd Nov 2003
Location: UK
Posted: 5th Feb 2004 00:32
thanks for the scancodes.

just code
GameMaker Jason
21
Years of Service
User Offline
Joined: 22nd Nov 2003
Location: UK
Posted: 5th Feb 2004 00:43
It's ok thanks for all the help this version is aviable at http://www.freewebs.com/dbproteam.

just code

Login to post a reply

Server time is: 2024-11-26 04:21:16
Your offset time is: 2024-11-26 04:21:16