RTS in blender

I started working towards making an RTS like Glest (http://glest.org/en/index.php) in blender, it seemed to me to be a very ignored genre because of the complexity of the AI, so i have decided to start with the basics and deal with the AI when it happens. i have made a scripted camera from scratch, that is similar to that on AOE and Glest etc. Firstly i have a few problems. have a go and see what happens when using keyboard and mouse at the same time.

any thoughts would be greatly appreciated

w - up
a - left
s - down
d - right
q - rotate
e - rotate other way
moving mouse to edge of screen will move the camera.

will attach a blend of my project

Attachments

005.blend (147 KB)

It looks fine…what’s the problem?!
Nice setup by the way!

You choosed really hard genre. Especially for the first game.

Nikolay740: I know, it may be a bad choice but i believe in jumping in at the deep end. lol

OTO: when you move the mouse and use the keyboard at the same time, it stops, or jumps. whatever it does, im not happy yet.

does anyone know how to time pieces if code to see how long they take?

EDIT : just found it, (import time …)

T

I have spent some time reading up on the .getCurrentlyPressedKeys() and come up with something I am happy with. you will see now that the keyboard and mouse work together so I am happy with the script. also it only uses maximum 1% on logic (YAY!) no i just have to figure out how to zoom in and out but im sure it will be ok

T

Attachments

006.blend (147 KB)

I would suggest work on design a bit. Don’t be lazy, you don’t need to model yourself at this stage, but you could borrow models from free websites.

Free models

http://blender-archi.tuxfamily.org/Models


http://www.katorlegaz.com/3d_models/index.php

Free textures

http://freetexturesite.blogspot.com/

I worked on an RTS for about two weeks,(12 hour days) and I accomplished a lot. I will upload the blend soon, maybe you could learn from it
; )

I’m Back, sorry it took so long, one of my computers got infected with a virus, anyway here it is http://savefile.com/files/1924541
I took a look at it and might have over estimated what I did, basically there are three ships, left click to select one and then left click to set a rally, right click to deselect and thats about all, and ignore the unpacked textures,
controls; mouse wheel moves hight, w,a,s,d, move the camera.
I might take up this project just to give you something more that this : )

To zoom in give the camera an IPO from near to far

Good luck!:slight_smile:

here’s another one demo.blend (234 KB) This one is for building buildings, and the money.
basically you can hit 1-6(on the top of the keyboard) and it selects a building. Then you move the cursor, with the arrow keys, then press space bar to build them. If you don’t have enough money then you cant select the building. And when you press space bar it deducts money. Each building has a different cost. This is just a quick step up, 6 minutes. Hope it helps. Hope you can understand it:o

Wow this is interesting.
I was thinking of making an RTS, or anything close to that, due to my unsatisfaction of Age of Empires III.
I’ve almost quit on my I-16 game, may try finishing it.

can someone write up a list of the main things we need? that would help alot

I tried to make a RTS prototype in the past.
Here’s the thread: http://blenderartists.org/forum/showthread.php?t=129336
I hope it’ll help you.
I suggest you first focus on the functionality of the game then you should start working on the artistic content.

- AniCator

I really hope you finish this!
After you get the game play working, you should implement multiplayer over LAN.:yes:

I have been doing some research over Christmas and have an update for you all, I hope you like it, i have added zoom that im not completely happy with so any suggestions welcome. also check out the building placement stuff.

to do: (incomplete)

add support for multiple buttons
zoom working properly

please add to my todo

T

Attachments

009.blend (160 KB)MouseOverAdd.blend (238 KB)My Demo 002.blend (287 KB)

this is a quick update to the camera script, the zoom and movement work as i want them to and the reset key ®, resets position as well

wasd - move
qe - rotate
r - reset
mouse to edge - move

will add support for multiple keys pressed in next revision

T

Attachments

012.blend (155 KB)