Hi I want to change the lane of my character car by tapping on the screen along with the animation. So on each tap the character will toggle the lane. Is it possible? Please find the screenshot. Thanks!
Hi, let me rotate your image a bit, so it's easier to understand. Take a look at my picture below, I come up with an idea: 1. You need to put 2 invisible platform to block the car from falling out of the race. 2. You need an action button to change the GamePlay: which I suggest is changing gravity of the world (how to add action button here). 3. Now when you press on the action button, world gravity would switch from, for example,x:0-y:50 to x:0-y:-50 --> This step make your character move up or down depends on how you setup the button setting. 4. Change the game directions and adjust the gravity vector, x-y values, to fit your needs. That's my idea
Hi, That's awesome. I have added two invisible collision objects at the side of the road. I've also added a Switch instead of a button to toggle the car movement. For car movement I've changed the linear velocity under "Advanced Move" section. This needs some fine tuning. I am also taking an idea from the Wall Jump template. Thanks for your help
Here's the setting I did which saved me from adding 2 invisible platforms at the side of the roads. My game direction was -30 so I used the following formula to determine the linear velocity of my character. In my case the speed was 10. X = Speed * Cos(-30) Y = Speed * Sin(-30) I put these points in the linear velocity of my character and starts moving in game direction without any side collision support
Arif I didn't get the part of "switch". Can you please elaborate? How did you switch your character from one lane to another by using only a single button?
Hi Inside the Game Field UI you need to drag the "Switch Button" to the scene. This button is very useful because it contains two events i.e. "Switch A" and "Switch B" so you can perform unique action on each tap. Something like this: https://www.dropbox.com/s/w3cdlwqehoz8cw6/Screenshot 2016-04-27 11.25.21.png?dl=0
Hi @arif134 - question - I have placed one character goes right in the default animation. then I put another in the switch a and another in switch b but what happens is that upon switch always one of them stays. meaning 1 shows then 1+2 shows instead of just 2 and then 1 shows - what am I doing wrong ?
Dear @arif134, I used your above mentioned method for using angle for my character movement. It's working but the problem is it is taking longer time to change lane, I mean it's going to that movement direction but not abruptly but slowly. Any idea?
Here is the sample project that will move the isometric car and change the lanes on each tap. I hope it will be helpful. https://www.dropbox.com/s/r1qspg13jqccsny/iso_runner.bbdoc?dl=0