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 / wierd!?!?!

Author
Message
dark knight73
16
Years of Service
User Offline
Joined: 14th Jul 2008
Location:
Posted: 15th Jul 2008 02:20
When I use the sync on command darkbasic freezes and I have to close it via task manager, does anyone know why this is happening? And sorry if I double post I think I forgot to put a subject last time and Im not sure if it would go through.
Sinani201
18
Years of Service
User Offline
Joined: 16th Apr 2007
Location: Aperture Science Enrichment Center
Posted: 15th Jul 2008 03:56 Edited at: 15th Jul 2008 03:57
First of all, before using a command, you should know what it does! Anyways, When you use the "SYNC ON" command, you have to put Syncs in your loop, because syncs update the screen. Or you can use SET SYNC RATE 0 and it will do it automatically.

SO basically, use the sync right before the LOOP command is called.


BN2 Productions
21
Years of Service
User Offline
Joined: 22nd Jan 2004
Location:
Posted: 15th Jul 2008 04:58
it is really hard to know what the problem is without some of your code. Please help us help you.

Ever notice how in Microsoft word, the word "microsoft" is auto corrected to be "Microsoft" but "macintosh" just gets the dumb red underline?
Dark Dragon
17
Years of Service
User Offline
Joined: 22nd Jun 2007
Location: In the ring, Kickin\' *donkeybutt*.
Posted: 15th Jul 2008 05:05
Quote: "Ever notice how in Microsoft word, the word "microsoft" is auto corrected to be "Microsoft" but "macintosh" just gets the dumb red underline?"


hahaheheheh....

AM I UGLY OR WHAT??!!
What? It's My Sig!!...
Pixelator
17
Years of Service
User Offline
Joined: 8th Jul 2007
Location: here
Posted: 16th Jul 2008 03:51
Quote: "Quote: "Ever notice how in Microsoft word, the word "microsoft" is auto corrected to be "Microsoft" but "macintosh" just gets the dumb red underline?"

hahaheheheh...."


um, that is random. if you are going to ask for help, please respond with something related to what people tell you even if its just and "ok thanks". hahaheheheh doesn't help us help you at all.

by the way im not that mean, realy, i just want to keep you from getting noob slapped. it isn't fun. but what are my ramblings going to do i mean really... [/ramble]

Ed222
17
Years of Service
User Offline
Joined: 3rd Nov 2007
Location: Calgary
Posted: 16th Jul 2008 21:28
Quote: "if you are going to ask for help, please respond with something related to what people tell you even if its just"

he wasn't asking for help Dark knight was

dark knight73
16
Years of Service
User Offline
Joined: 14th Jul 2008
Location:
Posted: 17th Jul 2008 03:57
thanks sinani you fixed the problem
dark knight73
16
Years of Service
User Offline
Joined: 14th Jul 2008
Location:
Posted: 17th Jul 2008 04:04
Oh ugh I ran into another problem I got my program working the way I want it to but when I began to attempt at animation It wont work. I know all you have to do to animate it is to change the image number on the sprite(right?) but its not working, here is my code do you guys know what I did wrong?

I just tried to make it so that he would face down when I pressed down but it didnt work
Libervurto
18
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 18th Jul 2008 00:58 Edited at: 18th Jul 2008 01:07
Please indent your code!

I'm so appalled at your code structure that I've cleaned it up for you lol. But seriously, indent and improve the layout of you programs and you'll have far fewer problems (and when you do, it'll be easier for us to help you out).


There's no need for that cutting out of images you were doing but I may as well tell you what was going wrong in case you need to use the get image command with an off-screen bitmap in the future.
The GET IMAGE command grabs an image from the active bitmap; by default this is the screen (bitmap 0), but by using the SET CURRENT BITMAP command you can change the active bitmap to an off-screen one. You can do all kinds of manipulations on the active bitmap: draw on it, mirror it, etc.

The reason your program didn't work is because you never changed the active bitmap, so for every image DB was grabbing from the screen (which was blank).

It is far better to complete a 10 line program than to start a 10,000 line program.
dark knight73
16
Years of Service
User Offline
Joined: 14th Jul 2008
Location:
Posted: 18th Jul 2008 02:45
Thanks for the lesson Obese Im really really new to programing I just looked at a tutorial for code indentation so thanks for that tip. I thought that I needed to cut the image because I got the sprite sheet and then cut it up in paint, but when I tried to save the image I couldnt figure out how to make it so it would save just the image . so if I dont cut it there is a huge white square on the screen
Irojo
17
Years of Service
User Offline
Joined: 21st May 2008
Location: Eating toast.
Posted: 20th Jul 2008 05:28 Edited at: 20th Jul 2008 05:31
If you are new to programming, then you shouldn't be taking on sprites or 3D or anything so advanced. Stick with the basics, master them, and then you'll easily take on much harder programs...


Check out TDK Man's Tutorials

I urge you to watch the film "Who killed the electric car". Support electric cars! Did you know their used to be more electric cars then gassoline cars?
Ed222
17
Years of Service
User Offline
Joined: 3rd Nov 2007
Location: Calgary
Posted: 20th Jul 2008 20:08 Edited at: 20th Jul 2008 20:09
@Dark knight
heres a code to help you out

after running simply copy the colorful boxes with print screen then paste and save in paint as bmp then in each one of those boxes you can place a sprite. The image number is for that sprite is on the box it self. once done place this in front of your code

and your done also note that images 1 to 70 will be taken up after you used up all 70 images your on you own BTW I didn't write this code some guy at the pc campus I went to last year wrote this.

dark knight73
16
Years of Service
User Offline
Joined: 14th Jul 2008
Location:
Posted: 21st Jul 2008 06:21
dang thats helpfull, thanks a lot edd222

Login to post a reply

Server time is: 2025-06-07 07:06:02
Your offset time is: 2025-06-07 07:06:02