1. English- Sorry, my English is bad. :-)
2. Deutsch.1. Hello,
I want to make a strategy game (like settler, AoE2...).
But i have some problems, with construct buildings in real-time.
If click the player on the build-button, should the engine:
-construct a building at the mouse position on the map. (mouse_pos.x not the same like map positions?)
-A preview building on the mouse cursor. -pull the preview at the mouse cursor.
-The building must be place on the basis/ground of the map.
-Shouldn't build able, if there another building or too great a slope.
-Shouldn't build over the map size.
My code/button function:
function build_tower()
{
Vector temp;
temp.X = mouse_pos.x;
temp.Y = mouse_pos.y;
temp.z = 900;
vec_for_screen(temp, camera);
ent_createlocal ("tower1.wmb", temp, NULL)
//tower is a prefab from gamestudio
}
I have found a good example in AUM nr.2, but that isn't lite-c.
-Its work only on A4 or A5, can somebody rewirte in lite-c?
Download link:
http://aum.conitec.net/aum2.zipI ask for an example, where I can get bearings.
I found only shooter examples or to make shooter, action games explanation.
Or is there a tutorial to make strategy games?
Thank you in advance.
Streetmonkey
---------------------
2. Deutsch.
Hallo,
ich möchte ein strategie Spiel machen (so etwas wie Die Siedler oder AoE2).
Aber ich habe ein paar Probleme mit dem erschaffen von Gebäuden in Echtzeit von der Engine. mein code:
function build_tower()
{
Vector temp;
temp.X = mouse_pos.x;
temp.Y = mouse_pos.y;
temp.z = 900;
vec_for_screen(temp, camera);
ent_createlocal ("tower1.wmb", temp, NULL)
//tower is a prefab from gamestudio
}
Klickt der Spieler auf den (Bauen-)Button sollte folgendes passieren:
-Baut ein Geääude an der Maus position in der Welt bzw. auf der Karte. (Maus-Position ist nicht das gleiche wie die Weltpostition?)
-Das Gebäude sollte auf dem Boden der Karte plaziert werden.
-Sollte nicht baubar sein wenn an der Baustelle ein Hindernis im Weg ist.
-Es sollte nicht möglich über dem Kartenrand zu bauen.
ICh fand ein gutes Beispiel dafür, das auch funktionierte in AUM 2.
Leider ist das noch nicht in Lite-C geschrieben, da es die A4/A5 engine noch ist und funktiniert nicht.
Kann das jemand in Lite-C umschreiben?
Gibt es ein Tutorial zum erstellen von Strategie-Spiele oder Beispiele im aktuellen lite-c?
Hier der Link:
http://aum.conitec.net/aum2.zipVielen Dank im Vorraus.
Streetmonkey