Costum Car Movement

Get help using Construct 2

Post » Mon Mar 19, 2012 1:28 pm

Hi, guys i am trying to figure out how to make costum movement for a top view car game, i`ve tried some tricks but can`t make it right. I would like to make the computer car movement to be similar like the car behavior.

http://dl.dropbox.com/u/67937942/Parking%20Game%20random%20movement.capx

I have another question, but not to open another thread i`ll ask here, and the question is how can i make the system go to another layer after the car stops at a particular place place(car is parked)?

The red square is the place where the car should be parked.

Any advises would be of a great help.

Thanks.
B
10
S
3
G
3
Posts: 54
Reputation: 3,317

Post » Mon Mar 19, 2012 1:39 pm

1) I dont understand why you need to make a custom car movement, if theres a car behaviour.

2) You mean, go to another Layout? You may use the Go to Layout event.
B
228
S
6
G
8
Posts: 86
Reputation: 12,295

Post » Mon Mar 19, 2012 1:43 pm

[quote]1) I dont understand why you need to make a custom car movement, if theres a car behaviour.[/quote]

I think he mean the AI cars
me 2, would like to know how to handle AI for cars in C2.
B
22
S
3
G
5
Posts: 141
Reputation: 5,117

Post » Mon Mar 19, 2012 2:26 pm

To get the car movement working on the computer cars you just have to disable "Use default controls" in the behaviour.

I made a simple TurnLeft/TurnRight system that'll hopefully help you along the way. It's not random movement, but you should be able to edit it and get random turns.

Dropbox-Link: ParkingGame_Edited.capxNimtrix2012-03-19 14:30:57
B
27
S
8
G
8
Posts: 903
Reputation: 8,452

Post » Mon Mar 19, 2012 2:29 pm

Yep, i mean AI cars.

[QUOTE] 2)You mean, go to another Layout? You may use the Go to Layout event.[/QUOTE]

I mean, when the car stops over another object the system to go to another layout.legora2012-03-19 14:30:42
B
10
S
3
G
3
Posts: 54
Reputation: 3,317

Post » Mon Mar 19, 2012 2:34 pm

Nimtrix you are the best :), thank you so much, that`s what i wanted to know. Thanks again.

Thread closed :)
B
10
S
3
G
3
Posts: 54
Reputation: 3,317


Return to How do I....?

Who is online

Users browsing this forum: SpartCrafter, Yahoo [Bot] and 23 guests