-
Member
Obstacles relative to bike speed
Hi, i was wondering if anyone could help me figure out some logic. I would love to know how i can raise an obstacle like a wall for example with the speed of the bike.
Imaging you start at a CP riding towards a jump, as your speed increases i want the wall you need to land on to increase in height. So if you go max speed the wall is just as difficult as when you jump at half speed.
I just have trouble figuring out what i need to do to make the OPE for the wall to "know" what the speed of the bike is and also that it would lower the wall if you loose some speed on the way.
I would use area trigger at the CP and 1 just as your frontwheel is at the top of the ramp, after that i have no clue what the logic is and how it all needs to be connected to work like i want it.
It seems like the same way the cube skill game seems to "know" at what angle the cube is and yet always rotates to being flat regardless at what angle it is when you are at the edge.
I can only dream to get my head around the whole logic thing so my best bet is just asking if someone can explain in detail or show in a video how i need to do this.
Thx in advance to anyone that could help me. I will keep trying to figure it out on my own but pretty sure i will keep running into problems.
(I know i can change the obstacle but i want to get better at the logic side of the editor)
-
Member
Woohoo i kinda figured it out, atleast my logic works like i want it but could be slightly more accurate i guess.
Gamecharacter speed to variable datasource then send that value to double inputoperator and dividing that number by 3000, send that value to OPE Y-position and connect OPE to the wall.
Interval trigger connected to OPE and i set it to 2 ticks as it seemed to get better result then setting it to 1 tick.
Area trigger at CP to turn a state event on for OPE and 1 at top of the ramp to Turn OPE off.
Pretty basic logic as it turns out and like i said its close enough to get the job done.