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 / Help with Dark Basic (Not sure where to put this)

Author
Message
Dan20
18
Years of Service
User Offline
Joined: 7th Dec 2006
Location: Spokane Valley
Posted: 8th Dec 2006 02:55
Hey,

Sorry guys, I'm new here. My school recently got a video game class and we are using the Dark Basic program and there are a couple of things I'm just struggling with:

add two additional objects onto the game space -- one object blue and one object orange. Make sure that they are shown in the correct position and color on the map.
Move the HUD video to the upper right of the screen.
Change the object in the upper left corner to also be a radar sprite. Make the object in the lower right slowly move halfway up the right side and then stop.

it from the Dark Basic program that my school has I'm really struggling with it. HELP please.
Grog Grueslayer
Valued Member
19
Years of Service
User Offline
Joined: 30th May 2005
Playing: Green Hell
Posted: 8th Dec 2006 07:41
This sounds like an assignment using code the teacher provided. One of the things most of us here don't like doing is helping students cheat by just giving the answers. Changes are everything that's in the assignment was talked about in class.
Dan20
18
Years of Service
User Offline
Joined: 7th Dec 2006
Location: Spokane Valley
Posted: 8th Dec 2006 18:57
I understand.
Dan20
18
Years of Service
User Offline
Joined: 7th Dec 2006
Location: Spokane Valley
Posted: 8th Dec 2006 19:00
I understand. But the teacher said we can have help, I will ask my classmates, its not a problem.
Steve J
19
Years of Service
User Offline
Joined: 22nd Apr 2006
Location: Vancouver, Washington
Posted: 9th Dec 2006 05:55
Dan20, what school do you go to in spokane?

http://phoenixophelia.com

Steve J, less, and less Controversial!
Dan20
18
Years of Service
User Offline
Joined: 7th Dec 2006
Location: Spokane Valley
Posted: 9th Dec 2006 10:36
Am I in trouble? I go to West Valley.
SimSmall
20
Years of Service
User Offline
Joined: 7th Aug 2004
Location: United Kingdom
Posted: 9th Dec 2006 12:19
Quote: "I understand. But the teacher said we can have help"


sounds like that means help from the teacher...
Latch
18
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 9th Dec 2006 15:39
Hi Dan20,

No cheating but here are a couple of tips:

Quote: "add two additional objects onto the game space "


I'm guessing that part of the game environment already exists and you have to add to it. One place to start might be to go through the code that already exists and see how things are being done so far.

What kind of objects do you have to add?

Quote: "Change the object in the upper left corner to also be a radar sprite"


Are they all sprites? If so, read up on the SPRITE command. You'd be amazed at just how much you'll be able to do with this one command.

You'll also have to read up a bit on images. Check out LOAD IMAGE and GET IMAGE. An image provides the graphic (picture) that a sprite can use.

The screen can be thought of as a big grid with two axes (directions), x and y . X runs from left to right, 0 starting on the far left and increasing until the far right side of the screen. Y runs top to bottom, 0 starting from the top and increasing until the bottom of the screen. The actual size depends on the resolution. You can reference (point to) different areas on the screen using the values of x and y. So if your screen resolution was 640 by 480 (X by Y) where would the center be? If you can answer that, then you're on track to being able to position your objects.

Enjoy your day.
Dan20
18
Years of Service
User Offline
Joined: 7th Dec 2006
Location: Spokane Valley
Posted: 9th Dec 2006 21:50
All I wanted was tips. I should have made that clear, sorry my fault. Thanks!

Login to post a reply

Server time is: 2025-05-26 03:38:21
Your offset time is: 2025-05-26 03:38:21