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 / The Newcomers Challenge! (Only for Newcomers)

Author
Message
Xenocythe
19
Years of Service
User Offline
Joined: 26th May 2005
Location: You Essay.
Posted: 16th Jul 2005 04:40
I made this up because I want newcomers to learn, by taking on these challenges I give them.

So you wanna take the challenges on?

Try this first, simple one. I added REM statements to guide you through. The purpose here is first to read it, play it, and realize what it does.
This code simply show the reaction of pressing the spacekey.

Have you completed the purpose? If so, I want you to try at the challenge. [Warning, for complete Newbies only]

Try to make it so when you go to the 'end' section, that instead of ending it, it waits for you to press space key again so that it can go back to the 'loop' section to continue putting dots on the screen. Making it so when you press space key to view the amount of dots on the screen, you can press the space key to go back, and forth, and so on.

Can you do this newcomers?

I'll update for the next challenge when some one gets this.

So what do you think guys? Was this a waste of time?

Enjoy Life while your still alive.
Enjoy a recees anytime!
BearCDPOLD
21
Years of Service
User Offline
Joined: 16th Oct 2003
Location: AZ,USA
Posted: 16th Jul 2005 20:07 Edited at: 16th Jul 2005 20:08
So sorry, I am not a newbie, but I was bored. Newbies should jump onto stuff like this, you learn from it. Try making it a little more complicated and related to games though. This is a good idea.



Crazy Donut Productions
Current Project: A Redneck game
Xenocythe
19
Years of Service
User Offline
Joined: 26th May 2005
Location: You Essay.
Posted: 17th Jul 2005 01:28
Yeah, more complicated might help, but these people have to learn how to do keyboard input. Anyway, I'll work on a harder one soon, right now I'm really busy.

Enjoy Life while your still alive.
Enjoy a recees anytime!
Heckno
20
Years of Service
User Offline
Joined: 8th Sep 2004
Location: Palm Coast, FL
Posted: 17th Jul 2005 13:21
What version is this written in Classic? Doesn't work on my complier DBP
Xenocythe
19
Years of Service
User Offline
Joined: 26th May 2005
Location: You Essay.
Posted: 17th Jul 2005 15:14
This is in classic, sorry but I dont know how make it Pro

Anyone gonna try it?

Enjoy Life while your still alive.
Enjoy a recees anytime!
Grog Grueslayer
Valued Member
19
Years of Service
User Offline
Joined: 30th May 2005
Playing: Green Hell
Posted: 17th Jul 2005 18:58 Edited at: 17th Jul 2005 19:16
You just have to fix the errors to get it to run in Pro.

In the first snip the code was: syncrate=2
It should be: sync rate 2

I changed it to "sync rate 0" because that's as fast as your computer can handle it.

I added "screen width()" and "screen height()" instead of numbers in the random number picker line. So the program uses the current resolution of the screen.

The line: dot=dot+1
Had an error because it thinks your trying to make another dot.
I changed it to "inc dots" (which is the same thing as dots=dots+1) and I changed the print number of dots line to work with the new variable name.

There also needed to be a sync right after printing the number of dots and a "suspend for key" to be able to see the print line before the program ends.

This will run in both Classic and Pro.



The challenge still stands though so go for it.
Sven B
19
Years of Service
User Offline
Joined: 5th Jan 2005
Location: Belgium
Posted: 17th Jul 2005 22:40
the problem is that DBP doesn't allow you to store variables that are taken by commands. This means, syncrate is forbidden for DBP and not in DBC, same for dot, wich you have changed to dots

Immunity and Annihalation makes Immunihalation...
Xenocythe
19
Years of Service
User Offline
Joined: 26th May 2005
Location: You Essay.
Posted: 17th Jul 2005 23:54
I see... Thanks for pointing this out!

*Sigh* No ones up for trying it...


The challenge is the same, it's writtin in the first post.

Enjoy Life while your still alive.
Enjoy a recees anytime!
BearCDPOLD
21
Years of Service
User Offline
Joined: 16th Oct 2003
Location: AZ,USA
Posted: 18th Jul 2005 19:18
It's not too terribly challenging guys.

Crazy Donut Productions
Current Project: A Redneck game
Grog Grueslayer
Valued Member
19
Years of Service
User Offline
Joined: 30th May 2005
Playing: Green Hell
Posted: 19th Jul 2005 17:48
Perhaps the newbies are too busy making the next Grand Theft Auto.
Resident Evil 4 fanboy
19
Years of Service
User Offline
Joined: 2nd Feb 2005
Location: Where evil doers are!Oh wait, my room!
Posted: 20th Jul 2005 05:03 Edited at: 20th Jul 2005 05:05
HEY GUYS WHEN I WROT THIS PART OF THE COMMAND
[IF SPACEKEY()=1 THE GOTO_END

IT SAID THAT IT COULDN'T UNDERSTAND THE COMMAND

Don't mess with spiderman!
Grog Grueslayer
Valued Member
19
Years of Service
User Offline
Joined: 30th May 2005
Playing: Green Hell
Posted: 20th Jul 2005 08:11
It's because it doesn't know what "[IF", "the" and "GOTO_END" are. When you have an "if" statement it's generally "if something then something". "GOTO" always needs a space after it.
Big Man
19
Years of Service
User Offline
Joined: 4th Feb 2005
Location: BEHIND YOU!!!! (but I live in England)
Posted: 27th Jul 2005 22:48 Edited at: 27th Jul 2005 22:49
Here is another variation that could be used as a screen saver or something.

Our aim is to keep the loo's clean, your aim can help.
master programmer
19
Years of Service
User Offline
Joined: 30th May 2005
Location: 3D Space
Posted: 29th Jul 2005 04:02
I'm not a newbie, but I found that the dots can be useful for loading screens.

__________________________________________
<<<<<Check out my sites>>>>>
www.rhettgames.tk | www.slayerbattletanks.tk
CattleRustler
Retired Moderator
21
Years of Service
User Offline
Joined: 8th Aug 2003
Location: case modding at overclock.net
Posted: 29th Jul 2005 05:54
my advice to the n00bs

move away from using GOTO

DBP Plugins Latest: MSAccess, SQLServer, MySQL plugins for DBP
Milky the purple crab
19
Years of Service
User Offline
Joined: 5th Aug 2005
Location:
Posted: 11th Aug 2005 11:28
hey im a newbie i couldnt figure out ur challenge though lol
but i tried to alter it to make the returnkey show the dots and the space bar to end BUT i ran into some problems can you try to code and tell me WHY it shows more about 3 amounts of dots at 1 time please

thx

I don't fear pain.....I fear feeling it.

Login to post a reply

Server time is: 2024-11-27 20:44:01
Your offset time is: 2024-11-27 20:44:01