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 / Instead of 3D models-is it possible to use 2D sprites like in Duke3d or Hexen?

Author
Message
Game Freak10K
21
Years of Service
User Offline
Joined: 29th Apr 2004
Location:
Posted: 12th Aug 2004 13:59
I couldnt do a 3D model if my life depended on it, and yes I started out small..namely a cube with a texture. Never coudl get past that.

Can darkbasic work with 2D models for enemies, like in the old games Doom, Duke nukem 3D, Hexen, Strife, shadow warrior, Blood, etc.
I have the registered collision dll, I hope it works with sprites.

Comics and Games-Bread and Butter.
Powersoft
21
Years of Service
User Offline
Joined: 1st Aug 2003
Location: United Kingdom
Posted: 12th Aug 2004 17:42
just draw a 2d image in a 3d perspective


Create or Play? You choose!
Game Freak10K
21
Years of Service
User Offline
Joined: 29th Apr 2004
Location:
Posted: 12th Aug 2004 17:49
yes yes thats part of what I did, but how about walking around the enemy sprite? I figured using the old system, 8 different enemy views and when you walk around the enemy, it "looks" 3D, like duke3d/doom, etc. I wanted to know if this is programmable, you know, if Darkbasic can handle something like this, Ive never seen anyone try it so......

Comics and Games-Bread and Butter.
Powersoft
21
Years of Service
User Offline
Joined: 1st Aug 2003
Location: United Kingdom
Posted: 12th Aug 2004 18:01
umm.. dunno


Create or Play? You choose!
zane
21
Years of Service
User Offline
Joined: 23rd Feb 2004
Location: manchester, england
Posted: 12th Aug 2004 23:32
it is probably possible. you would need to use some form of maths to work out there the sprite blongs on the screen and how big it should appere. I would't know what the maths is that you would need to use though

www.zaneinteractive.uni.cc - my brand new site, check it out - NOW!!!!!
Lzdude69
21
Years of Service
User Offline
Joined: 21st May 2004
Location: Indiana
Posted: 12th Aug 2004 23:54
just make a plain and put you 2-D image on it.



there ya go, just make sure that there is no black on the image, because ghosting an object turns black to transparent, oh yeah make the background black, just not the actual guy.


currently working on 2 projects: HexTournament, Quantum Tournament
Kentaree
22
Years of Service
User Offline
Joined: 5th Oct 2002
Location: Clonmel, Ireland
Posted: 13th Aug 2004 00:06
I've seen it done a couple of times in DB. Its quite easy actually, you get a plain like Sarge said, and you texture it. I wouldnt ghost it, but set transparency on so all the black is transparent. Use yrotate object to constantly keep the plain facing your way. Now, from getting the angle that the plain is facing, you can decide which texture to put on it, so if you are at a certain angle to it, you get a different view of the object.

AMD Athlon XP2800+
GeForce FX5200 128MB
1024MB DDR 333MHz RAM
Game Freak10K
21
Years of Service
User Offline
Joined: 29th Apr 2004
Location:
Posted: 13th Aug 2004 03:09
Whooha! Im back in the game peopel thanks for helping. Im gonna post the enmy pic later tonight. I have to reinstall Darkbasic though, I lost faith and gave up. You guys (and/or gals)just gave me a reson to keep trying to make this game. That is, if you realize I meant for the 2D sprite to be used in a FPS....you all knew that right?..

Comics and Games-Bread and Butter.
BCRICH WARLOCK
20
Years of Service
User Offline
Joined: 10th Aug 2004
Location:
Posted: 17th Aug 2004 03:40
3d Games That Use Sprites For enemys ROCK Just Becouse It Looks Insane.
Now I gotta Find duke 3d and Play It! I Hope You Get Your Game Done, If You Do Fork It Over!
Game Freak10K
21
Years of Service
User Offline
Joined: 29th Apr 2004
Location:
Posted: 17th Aug 2004 10:14
Itll be done when its done

Comics and Games-Bread and Butter.
Arkheii
21
Years of Service
User Offline
Joined: 15th Jun 2003
Location: QC, Philippines
Posted: 17th Aug 2004 18:59
Imagine Doom3 done with sprites... Yeah.

You don't need a collision DLL for sprites though. Just use cylindrical collision using math.

Game Freak10K
21
Years of Service
User Offline
Joined: 29th Apr 2004
Location:
Posted: 18th Aug 2004 14:01
........wasnt really gonna make a Doom3 game, looking for something simpler. Itll get done in a few months instead of 4 years, yknow?

Comics and Games-Bread and Butter.
Arkheii
21
Years of Service
User Offline
Joined: 15th Jun 2003
Location: QC, Philippines
Posted: 18th Aug 2004 15:49
Nah, I wasn't meaning to relate it with your game. I was just thinking how funny it'd be if the bump mapping crap was introduced in the early 90's and implemented in those early engines. It was just a random thought, no offense intended Were you able to do the rotation stuff, like when the sprite is viewed from different angles? I got one to work before, and I think I can re-code it if you want.

I like games that use a hybrid of 3D and 2D. Disgaea has awesome sprite animations, even for such small sprites. I'm also looking forward to Ys6.

Game Freak10K
21
Years of Service
User Offline
Joined: 29th Apr 2004
Location:
Posted: 19th Aug 2004 09:36
Didnt mean to sound offended, Im cool. I havent gotten the rotation to work but I have one sprite that has simple walking animation to it. Id appreciate that code of yours, ill add the other 7 or so angle animations over the course of a few days. Gonna take another shot at requesting a team. Thanks though.

Comics and Games-Bread and Butter.
Arkheii
21
Years of Service
User Offline
Joined: 15th Jun 2003
Location: QC, Philippines
Posted: 19th Aug 2004 23:11
I'll post the full code tomorrow (making a new one from scratch), after my math exam. I've got static sprites to work (trees, a little grass), but the rotational code and the 8 way sprite, I'll finish tomorrow.

Game Freak10K
21
Years of Service
User Offline
Joined: 29th Apr 2004
Location:
Posted: 20th Aug 2004 18:48
Ok I just got the enemy to face you wherever you move.

Comics and Games-Bread and Butter.
Game Freak10K
21
Years of Service
User Offline
Joined: 29th Apr 2004
Location:
Posted: 26th Aug 2004 14:13
arkheii?......you can email the code if you want..

Comics and Games-Bread and Butter.
Arkheii
21
Years of Service
User Offline
Joined: 15th Jun 2003
Location: QC, Philippines
Posted: 26th Aug 2004 16:16
The coding is easy. Making 8-way sprites isn't

What I'm doing with it so far is including different ways to show the sprite. There's a different trick for trees, a different one for Doom characters, and a different one for Ragnarok style cameras.

The Ragnarok-style one is tough because I don't sprite too well. And for the Doom-style, you'll have to settle for a blue smiley. It'll be done once I get the spritework finished, unless you can give me descriptions of what the sprite will be doing, and what camera angles, etc.

Arkheii
21
Years of Service
User Offline
Joined: 15th Jun 2003
Location: QC, Philippines
Posted: 26th Aug 2004 22:28
I hereby bump this thread for a good reason...

http://www.thegamecreators.com/?m=codebase_view_shot&i=741524749afdd624e6b40a0b540750d6


ph34r the blue smiley.

It's got variable sprite directions (8 or more, or less), etc. Simple, but should get you going. The functions are reusable too.

You'll have to do sprite animation yourself, but that's just a matter of switching textures everytime the timer ticks a few times.

Game Freak10K
21
Years of Service
User Offline
Joined: 29th Apr 2004
Location:
Posted: 27th Aug 2004 06:57
Glad to hear from you. I just tried out the code and all I can say is YOU ARE THE MAAAAAAAAAAN!!!!! Seriously thanx a trillion! Im going to have walking sprites, like the imps and hellkinghts of doom. I know Darkbasic cant accept GIFs so im looking for another way to load an angle of animation as a single file or data.
Thank you again. I cant thank you enough for this so heres for you:

do
print "Thank you ARKHEII!"
loop

Comics and Games-Bread and Butter.
Arkheii
21
Years of Service
User Offline
Joined: 15th Jun 2003
Location: QC, Philippines
Posted: 27th Aug 2004 21:09
There's more than one way to do things, so go ahead and tinker with new stuff. You could make a routine that divides an image strip into separate images, using Get Image etc., but all that's up to you.

Game Freak10K
21
Years of Service
User Offline
Joined: 29th Apr 2004
Location:
Posted: 11th Sep 2004 06:36
Arkheii, I dont mean to sound lazy but I need a little help with this. Now I learned how to do the 2D animation, making a sprite and all, but Im having a hard time sticking the animation to an object so when the object moves, it looks like the sprite (which is drawn on the object) is moving around. I mean is it possible to stick a sprite to an object (without using the sleep command and slowing the game down?)

Comics and Games-Bread and Butter.
Game Freak10K
21
Years of Service
User Offline
Joined: 29th Apr 2004
Location:
Posted: 16th Sep 2004 10:49
Please help me?
I gots animation but it wont stick to the object no matter how I code it. Is it possible?

Comics and Games-Bread and Butter.
Game Freak10K
21
Years of Service
User Offline
Joined: 29th Apr 2004
Location:
Posted: 15th Oct 2004 17:14
Well its pretty much been a month and Ive figured out how to fix the problem, yes with the help of forum members. However I resign my game project, not having the necessary programming skills to support my project. I wanted to enter it into the competition and see what happens, but.....oh well. Thanks for all your help everybody, im gonna try an work at 3D models again, which basically means ill be stuck in limbo until ive got ennough guts to try my project again.
This is GameFreak10K....signing off.....again

Comics and Games-Bread and Butter.

Login to post a reply

Server time is: 2025-05-27 20:19:37
Your offset time is: 2025-05-27 20:19:37