- Title: How to Make a 3D TDS mixed with 2D sprites
- Description: Tutorial on how to make a TDS using 3D for the world and sprites for the characters. Includes how to add lights as well
- GM Version: GM 7 or 8
- Registered: yes
- File Type: .gmk
- File Size: ~80k
- File Link: GM8 File GM7 file
Additional Info
UPDATE::
GM7 version is now up to date with the GM8 version, I even add some other new things like camera lock which makes it so when you press the "C" button the camera rotates and stays behind the player and when its not locked on you can rotate the cam manualy with the arrow keys. I also did other small improvements to the engines drawing system such as now the buildings and floors now have a parent object that does the drawing instead of the buildings that way you dont have to keep copying the code to different buildings or floors you just attach it to the parent.
Heres the flowchart for parents
o_solid (used for colisions)[link object parent to this only if you want the character to stop moving when he hits the object]
|
o_parent_object (used to save code)[link object to this]
|
object (object it self)
Fixed hud glitch.. again lolz
replace the hud drawing code with this
{
d3d_set_lighting(false)
d3d_set_projection_ortho(0,0,1024,768,0)
d3d_set_hidden(false)
draw_set_alpha(.4)
draw_set_color(c_gray)
draw_rectangle(0,0,24,36,0)
draw_set_alpha(1)
draw_set_color(c_black)
draw_text(0,0,oCAM.target.zz)
draw_text(0,16,fps)
d3d_set_hidden(true)
d3d_set_lighting(true)
draw_set_color(c_white)
}Please Leave a comment with your thoughts ^after all, how am I supposed to know what to and what not to add?
Features so far
- Auto tileing building textures(Includes roofs and walls
- Bigger character sprite(makes him look less pixelated)
- Car box has collision now
- Now you can't leave the room boundary MWA HA HA lol(except the car seems to some how defy that o.O)
- Easy to control camera object(zoomz,rotates and locks angle on play when you press"C" key)
Features I'm working on
- Auto-Tileing floors (auto tile roads are 45%done)
- custom save system (I'm using ini files not GMs standard save feature, so far the cars and the player both know where I left them and weather or not I'm in the darn car and it knows which car I'm in ^^)
- Weapons System
- Enemies
- Customizable Controls
- Pause menu system (This sends the player to a room called pause_room. now i know what ur thinking, wont that cause the game to forget where every thing is? NOPE it wont
I made it so the game makes a temporary save file remembering where things are then deletes it at the end of the actual game)
- day night system(currently the engine can do right now is raise and lower them look in the lights code for those controlls)
So far I've spent an accumulative of 3days on this engine >.<, plz give credit if used and don't use my character sprite I'm using him in one of my games. heres a screen shot of the engine enjoy
Edited by slkjdfv, 17 January 2010 - 07:31 AM.











