Driving Game Car Animations

Get help using Construct 2

Post » Tue Nov 06, 2012 2:28 pm

I am making a driving game:

When the car turns Right in reality, In this project, the car goes Down on the screen.
When it turns Left in Reality, the car goes Up on the screen.

I want Three Problems fixed:

Fixed, thanks to Justifun.

I want to Size scale-Up the Player, when the car goes Down.
And I want to scale it Down when the Car goes Up. :
-On the Bottom of the layout, the size scale should be 100%.
-On the Top of the layout, it should be 75%

I want the car to start with the "Standing animation" when the game starts. For some reason it playes another animation at start.
meman2012-11-06 16:42:48
Last edited by meman on Sat Jul 05, 2014 6:52 pm, edited 1 time in total.
Posts: 43
Reputation: 403

Post » Tue Nov 06, 2012 3:21 pm

1) all you have to do is check for specific conditions and then apply whatever animations etc you want under each condition.

eg: Add an event that has Keyboard left arrow is pressed, and add a second condition (right click-> add condition) and pick keyboard up arrow is pressed.

Now those actions will only occur when both keys are pressed. Rotate the wheel's or play a different animation direction or whatever. Do the same for the other possible key combonations you want.

2)I can't see the capx right now at work, but it sounds like you just want the car to scale depending on what area of the screen its on. Simply add a "system every tick" event, that scales the car based on its Y postion on the layout. You might need to get fancy with the math to make it scale nicely at any height. I suck at math so perhaps someone else can help with that.

3) use "on layout start" -> set animation to "standing animation"
ideally put that event at the beginning of all of your other events.
Posts: 863
Reputation: 11,697

Post » Tue Nov 06, 2012 4:36 pm

Thanks for helping me fix Problem 1. It's working now.

regarding problem3. I have already set it up that way. You will have to take a look at it when you get home please.

Problem2. remains unsolved. I still need help with Problem2. Maybe if someone could make an example capx ?
meman2012-11-06 16:45:22
Posts: 43
Reputation: 403

Return to How do I....?

Who is online

Users browsing this forum: qianyuqianxun and 1 guest