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 / Code Help Please, Well, If Ya Wanto

Author
Message
Server Setup
18
Years of Service
User Offline
Joined: 5th Jan 2007
Location:
Posted: 9th Feb 2007 19:43
Hi, I am new to dark basic and rather than filling the forums with unrealated newb garbage I have been pretty well keeping to myself and trying to learn from some very nice tutorials. Though, I have come to an impass. For a school tech prep project I have decided to create a game. But, on too the problem. The game works great. The intro screen loads and curentely I have it setup where you can select new game. I setup a sample camera of the problem. It seems when you move it, well, duplicates the screen over and over. I tested the moving code in a brand new .dba file and it worked fine. Though, it won\'t work in my game. Test it out and see what I mean if you want.
Any help is greately appreciated on the topic. Oh, am I forgetting to delete something when I gosub?

Krilik
19
Years of Service
User Offline
Joined: 16th Mar 2006
Location: Arizona, USA
Posted: 9th Feb 2007 22:23
The reason why its seems like its duplicating the screen over and over is because you turned the backdrop off when you create your level. What happens when you draw the screen, the program first draws the backdrop over everything on the screen (sort of giving you a blank sheet of paper), and then it will redraw all the 3D objects in there new place. So when you turn the backdrop off it doesn't give you a blank screen to draw on. Instead the program draws only the 3D objects over whatever else was on the screen, causing it to look like its duplicating it over and over. To fix it, just turn the backdrop on, or remove that line of code here:

Server Setup
18
Years of Service
User Offline
Joined: 5th Jan 2007
Location:
Posted: 11th Feb 2007 06:54
You are a genius. Thx alot. You probably saved me butt. One more question. I can not figure out how to append animations. For example. I want to have a chracter with three diffent animation files. Walking. Idle and attacking. I want it to be the same character and not change the object number at any point. How do I do this with classic? Do I use the append animation command?
Krilik
19
Years of Service
User Offline
Joined: 16th Mar 2006
Location: Arizona, USA
Posted: 16th Feb 2007 06:40 Edited at: 16th Feb 2007 06:40
I don't have very much experience using animations because I can't model or animate, but you should be able to animate all of your actions in one animation file and when you use the play object or loop object commands you can select the start and end frames.

So theoretically say you have a model that's animated using 75 frames. Frames 1 to 25 would be walking, frames 26 to 50 would be attacking, and 51 to 75 would be idle. So when you want to make your character walk in your game you would just use the command loop object object number, 1, 25.

I wouldn't take my word for it though

I'm just sort of speculating. I don't have the software or ability to make some 3D animated models to try it out for you.
Sixty Squares
18
Years of Service
User Offline
Joined: 7th Jun 2006
Location: Somewhere in the world
Posted: 19th Feb 2007 13:22 Edited at: 19th Feb 2007 13:22
Look in the the help folders of DBC.. I think a file called SAMPLE 10 has appending animations for you.

Login to post a reply

Server time is: 2025-05-26 03:32:43
Your offset time is: 2025-05-26 03:32:43