How do I Switch Vehicles

Get help using Construct 2

Post » Fri Jul 22, 2016 6:31 am

Hi

I'm trying to create a function similar to this Miniclip game called River Raider. You have the ability to enter and leave any free vehicles.

Is there a way to try and create something visually similar?

Cheers
B
10
S
3
Posts: 8
Reputation: 658

Post » Fri Jul 22, 2016 8:16 am

Of course it's possible... however I can't find River Raider by Miniclip anywhere - so I cannot compare what you're trying to achieve... but if it's 2D then C2 can do it.

~Sol
Tired of crappy file hosts that are crappy? Get DROPBOX - https://db.tt/uwjysXJF
Moderator
B
80
S
34
G
40
Posts: 3,029
Reputation: 30,393

Post » Fri Jul 22, 2016 9:33 am

It depends on how you have implemented your game so far, but there are already examples of implementation of such a feature in the forums.
Try to make a search using the keyword "Top down" "GTA" "Vehicles" in the request and you should find some examples.

Otherwise, it is mostly an idea of when you are not controlling the character itself, you hide it and make the vehicle the object you control in priority.
And once you get out of the vehicle, you make the character object the main priority for controls again.

Using boolean variables, to handle the current state of the game is key in that process.
New to Construct ? Where to start

Image Image

Image Image

Please attach a capx to any help request or bug report !
Moderator
B
284
S
109
G
91
Posts: 7,317
Reputation: 87,483

Post » Sat Jul 23, 2016 6:10 am

SoldjahBoy wrote:Of course it's possible... however I can't find River Raider by Miniclip anywhere - so I cannot compare what you're trying to achieve... but if it's 2D then C2 can do it.

~Sol

http://www.miniclip.com/games/river-raider/en/

I don't think my account can post URLS yet, but here is a link to the game. The first level would explain everything.

Kyatric wrote:It depends on how you have implemented your game so far, but there are already examples of implementation of such a feature in the forums.
Try to make a search using the keyword "Top down" "GTA" "Vehicles" in the request and you should find some examples.

Otherwise, it is mostly an idea of when you are not controlling the character itself, you hide it and make the vehicle the object you control in priority.
And once you get out of the vehicle, you make the character object the main priority for controls again.

Using boolean variables, to handle the current state of the game is key in that process.


Thanks! I'll look into it.
B
10
S
3
Posts: 8
Reputation: 658

Post » Sun Jul 24, 2016 5:11 am

River Raid must be geo-blocked for Australia because your link takes me to 8-Ball Pool game instead. I got the same page when I tried to Google it as well. Yay for geo-blocking... because the world needs more division :P

~Sol
Tired of crappy file hosts that are crappy? Get DROPBOX - https://db.tt/uwjysXJF
Moderator
B
80
S
34
G
40
Posts: 3,029
Reputation: 30,393

Post » Sun Jul 24, 2016 8:05 am

You could give all vehicles the car behavior, but leave them disabled.
Then, upon overlapping a vehicle and pressing a key to drive it, enable the behavior for this vehicle only.
Make you you disable the behavior for the previous car, or otherwise you'll end up in a nice car dance :P
B
17
S
7
G
1
Posts: 157
Reputation: 1,878


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 3 guests