RioLuk's Forum Posts

  • Are the cars driving with constant speed, even in a turn? I'm asking, because I'm racking my brain how to simulate a race. The cars have differen engines with different speedups, some have better brakes some better tires which all effect there way of driving and in the end there result. Well, and in a real car race, there have to be a brakeingpoint (the last/best moment where the driver hits the brake). This is very important, because some drivers (or cars) will brake later then others, which will give them an edge (in case they don't brake to late). I'm trying to simulate that action in a way. I searched the web but evertime I thougt I found something, the cars were never hitting the brake....it looks kind of automatic for me....not like a real race. Even though this is by far the best race-example for construct2 I have seen. Maybe someone has an idea, how to combine the "AI of Race car v2" example with my request. Or maybe a totaly different solution. It would really help me a lot, even the smallest hint, because I'm nearly giving up on this.

  • Ok, well that's a simple and nice tip. This should work fine for me.

    codah: the collision doesn't worked properly. The Player is not getting back the -50 if he's walking out of the Object:"Tree" again. anyway I'm going to try it with the boolean.

    Thank you guys!

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Hi!

    I'm having a big problem here, mabey someone can help me:

    I want to add a number to an instance variable but only once, so here's what I mean.

    For example: Player is overlapping "Tree" -> subtract 50 from the Player's Instance Variable called "InView"

    and when he is not under a "Tree" he will lose the Bonus of -50 "InView"

    So what I'm trying to do is, giving the Player a Bonus of -50 on "InView" which will make him more difficult to find by the enemies. So "InView" stays for the visibility of the player.

    Now my Problem is, that as long as the Player is overlapping the "Tree" construct2 is subtracting -50 constantly in place of just once every time he walks over.

    I tried it with "Trigger once" but that only works for one time, so when the Player moves out of the "Tree" and after a while walks back in, he won't get -50 from "InView" again.

    And I tried something with the Behavior Timer but i can't figure out how it really works.

    Can somebody help me with this?

    Thanks