gamecherry's Recent Forum Activity

  • hey guys, thanks for looking. Im making a racing game. How would you go about coding the finish line/lap line?

    If the player or AI cross it, it raises the lap count +1 but how would I keep a player/AI from raising the lap count by simply crossing the line multiple times instead of actually racing the course?

    Thanks

  • Thanks LittleStain, that was driving me crazy.

  • Hello and thanks for looking.

    I want coins to burst/explode from an object in the way particles would. Im having trouble. If I assign random(0,360) to the instantiated coin's angle it gives me a random angle every tick as opposed to just a single random number.

    Any thoughts on getting the coin(s) to act like a particle?

    Thanks

  • great solution but the problem I'm having is; when the car bumps into anything solid, it forces the car into a turn. I'm assuming because there's a bit of impact forcing the Angle of Motion to change for a split second.

    Is there any way to mitigate this?

  • you're right! If I crank up the particle rate to 60, it instantiates where it should. I had it at 5 per second. It wasn't obvious to me until you posted it...it makes sense. Thanks man!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • The particles are in spray and I could position the imagepoint closer but Im worried that if the delay is caused by a slow pc that when played on a faster pc the particle will instantiate correctly (at this point closer, which would be wrong.)

  • Hello and thanks for looking. I have a car object that, on button press, creates a particle object on the car imagepoint. Depending on how fast the car is moving, the particle is instantiating well behind it. If stopped, the particle is created exactly where it should be.

    My question is; is this a problem with my pc being too slow or would this happen regardless? I could code in a fix but if it's my pc, then it's not going to look right on the next pc.

    Solved below by Silverforce

  • Hello and thanks for looking. Is there a way to set MovingAngle at the start of Layout?

    I'm using the "Car" behavior to move a sprite. At start of layout I'd like the sprite to begin with a moving angle of 225 but I can't find anyway of addressing MovingAngle.

    Thanks

    I still haven't found an answer but worked out a temp solution - simulating controls of the car to achieve correct MovingAngle then positioning X,Y.

  • Thanks so much, Spongehammer. This is exactly the direction I needed to go. I found this https://www.scirra.com/tutorials/1167/l ... er-example

    Thanks for your help.

  • Hello all, thanks you for looking.

    I have an object that's created on layer 1 then moves its way upward through multiple parallaxing layers to layer 5.

    So, Layer1 - 27/100 parallax

    Layer2 - 42/100

    Layer3 - 63/100

    Layer4 - 100/100

    Layer 5 110/100

    Because the layers are moving at different speeds, their X coordinates appear at different points on the screen - so, the big question: Is there a formula to derive what the X should be in order to make the object appear to instantiate at the same point regardless of layer?

    Thank you for your time.

  • SOLUTION:

    I found a solution. If I give the enemy an 8 direction Movement behavior (or Platform) then I can compare its MovingAngle in System and set the animations that way.

  • Hello All, thank you for looking

    I'm using the Pathfinding command to move an enemy around the screen. How do I determine the direction it's moving so I can apply walking animations, etc?

    Thanks

gamecherry's avatar

gamecherry

Member since 12 Mar, 2012

None one is following gamecherry yet!

Connect with gamecherry

Trophy Case

  • 12-Year Club

Progress

12/44
How to earn trophies