About Store Forum Documentation Contact
Donations:
309$/mo



Post Reply 
How to began with cars?
Author Message
Truelegend Offline
Member

Post: #1
How to began with cars?
Anyone can help with get car working.
I looked at tutorial. But i need a mesh. no just cube. like proper car game.

Can anyone explain ,help?
04-16-2011 09:43 PM
Find all posts by this user Quote this message in a reply
Seba Offline
Member

Post: #2
RE: How to began with cars?
Make, get car model without wheels. Place it in world, but you need make your own obj type for example OBJ_CAR;
Then you need to write your own class that handle car, you can use for base Game::Item or Game::Obj;
Easy solution is use Game::Item;
Then you need add code from tutorial for wheels and load mesh for them;
Change position of wheels that they fit to car model;
04-16-2011 09:56 PM
Find all posts by this user Quote this message in a reply
Truelegend Offline
Member

Post: #3
RE: How to began with cars?
okey i can write car class its easy. but how i can make my own obj type (OBJ_CAR)?
04-16-2011 10:00 PM
Find all posts by this user Quote this message in a reply
Dynad Offline
Member

Post: #4
RE: How to began with cars?
check your enums folder.

There is always evil somewhere, you just have to look for it properly.
04-16-2011 10:04 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Truelegend Offline
Member

Post: #5
RE: How to began with cars?
I looked, but i dont understand.
04-16-2011 10:08 PM
Find all posts by this user Quote this message in a reply
Seba Offline
Member

Post: #6
RE: How to began with cars?
Open obj_type.enum.h and add at end:
OBJ_CAR;
Then in world edytor you can set obj type: OBJ_CAR;
04-16-2011 10:40 PM
Find all posts by this user Quote this message in a reply
Truelegend Offline
Member

Post: #7
RE: How to began with cars?
and in my code i can make container of it?
for example:
ObjMemx<Game::Car> Cars; ??
04-17-2011 09:14 AM
Find all posts by this user Quote this message in a reply
Seba Offline
Member

Post: #8
RE: How to began with cars?
Game::ObjMemx<"Name of class/struct which objects you want store in container"> "Name of container";

Example:
Quote:Game::ObjMemx<Car> Cars; //Cars
Game::ObjMemx<Game::Item> Items; //Items
04-17-2011 10:17 AM
Find all posts by this user Quote this message in a reply
Truelegend Offline
Member

Post: #9
RE: How to began with cars?
and
STRUCT(Car, Game::Item) for extend ?
04-17-2011 10:35 AM
Find all posts by this user Quote this message in a reply
Seba Offline
Member

Post: #10
RE: How to began with cars?
1) You should know it from c++;
Quote:class Car : Game::Item
{
};
2) You have it in tutorial;
Quote:STRUCT(Car , Game::Item)
//{
};

Don't ask such question write, build and check if have errors try change code.
(This post was last modified: 04-17-2011 10:45 AM by Seba.)
04-17-2011 10:45 AM
Find all posts by this user Quote this message in a reply
Dynad Offline
Member

Post: #11
RE: How to began with cars?
and 2 years C++ experience.. and still saying making a car class is easy xD

There is always evil somewhere, you just have to look for it properly.
04-17-2011 10:53 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Truelegend Offline
Member

Post: #12
RE: How to began with cars?
Yeah. But i doesnt understand Esenthel engine. I done ObjMemx<Car> but its write underclared identifer... everything what i make with EE is wrong :(
04-17-2011 12:09 PM
Find all posts by this user Quote this message in a reply
Dynad Offline
Member

Post: #13
RE: How to began with cars?
You need to define the Car class.

STRUCT(Car , Game::Item)
//{

}

Game::ObjMemx<Car> cars;

There is always evil somewhere, you just have to look for it properly.
(This post was last modified: 04-17-2011 12:13 PM by Dynad.)
04-17-2011 12:12 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Truelegend Offline
Member

Post: #14
RE: How to began with cars?
okey so i have done this i done .setObjType . but what next?
04-17-2011 12:16 PM
Find all posts by this user Quote this message in a reply
Dynad Offline
Member

Post: #15
RE: How to began with cars?
write your easy car class i guess? this is the very basic init stuff of the EE engine... the rest is your own coding part.

There is always evil somewhere, you just have to look for it properly.
04-17-2011 12:20 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply