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 / Using DB Pro Tutorials with DB

Author
Message
Raybrite2
16
Years of Service
User Offline
Joined: 16th May 2009
Location: Cyberspace
Posted: 15th Jun 2009 08:39
I have found that the DB Pro tutorials contain a lot of commands that are not recognized by DB Lite.
There doesn't seem to be a place beside TDK's Tutorials to look for information on constructing a game using DB Lite.
I am not looking for anything more than putting a sprite on the screen with a simple background.
I know about the variables, loops and such from the tutorials but, they sort of leave you hanging after that.
Any suggestions?
My goal for this week is to put a sprite on the screen and move it around. A bit of background would be nice. 2D please.
Thanks in advance for the help.
Hockeykid
DBPro Tool Maker
17
Years of Service
User Offline
Joined: 26th Sep 2007
Location:
Posted: 15th Jun 2009 09:24
Have you used the tutorials built into db?

Grog Grueslayer
Valued Member
20
Years of Service
User Offline
Joined: 30th May 2005
Playing: Green Hell
Posted: 15th Jun 2009 09:32
Darkbasic Lite is a small version of Darkbasic Classic. Most things written for Pro won't work in Classic because Classic just doesn't have all the commands Pro does.

Look up the commands:

LOAD IMAGE
PASTE IMAGE
SPRITE
UPKEY()
DOWNKEY()
LEFTKEY()
RIGHTKEY()

Raybrite2
16
Years of Service
User Offline
Joined: 16th May 2009
Location: Cyberspace
Posted: 15th Jun 2009 14:26
I tried those and could not make anything work.
Also tried to buy Dark Game Studio and found I could not get it shipped to me here in the Philippines.
Day is not going very well for me now.
It is evening. Maybe I should just quit for the day and start again tomorrow. I sent in an Inquiry as to why they can't ship to me and it should be answered by then.
Grog Grueslayer
Valued Member
20
Years of Service
User Offline
Joined: 30th May 2005
Playing: Green Hell
Posted: 15th Jun 2009 19:07
Quote: "I tried those and could not make anything work."


I'll show you but it won't involve loading an image. Run this as it is and it'll create an image and grab it for use for this code. You can modify it by erasing the lines from the first INK statement to GET IMAGE and putting LOAD IMAGE in it's place.



[/quote]Also tried to buy Dark Game Studio and found I could not get it shipped to me here in the Philippines.
Day is not going very well for me now. [quote]

I hope you can solve that problem because you've made a wise choice wanting to get Darkbasic Pro. You could always get just Darkbasic Pro and download it... no shipping needed. You don't really need to get Classic if you get Pro and Dark GDK uses C++ style code (nothing like Classic or Pro). The other stuff you won't be using till you learn Darkbasic more.

Raybrite2
16
Years of Service
User Offline
Joined: 16th May 2009
Location: Cyberspace
Posted: 16th Jun 2009 00:00
It is more the idea of saving about $200 on the purchase.
Raybrite2
16
Years of Service
User Offline
Joined: 16th May 2009
Location: Cyberspace
Posted: 16th Jun 2009 00:14 Edited at: 16th Jun 2009 00:15
I notice that in your code, you build the box and then show it. I am trying to load in a picture my nephew made and move it around.
I had planned to make some different poses and animate them so he could see what he can do with his talent.
(I am still waiting for an answer from Game Creators on the inquiry.)
Grog Grueslayer
Valued Member
20
Years of Service
User Offline
Joined: 30th May 2005
Playing: Green Hell
Posted: 16th Jun 2009 00:29
Quote: "I notice that in your code, you build the box and then show it. I am trying to load in a picture my nephew made and move it around."


Yeah that's why I told you to replace this:


With this:



Quote: "I had planned to make some different poses and animate them so he could see what he can do with his talent."


When you get Pro you can use CREATE ANIMATED SPRITE and PLAY SPRITE to animate. In the mean time you can make the image number the sprite uses a variable and change the variable to switch images on the sprite to animate.

Login to post a reply

Server time is: 2025-06-08 08:56:24
Your offset time is: 2025-06-08 08:56:24