3rdclover's Forum Posts

  • Hello, Everone.

    I'm currently testing a game very similar to the disk matches of Tron in which you grab a disk that's bouncing off the wall. Once you grab the disk you throw it in the direction of the adversary.

    Right now I'm facing an issue with the enemy AI in which, when it grabs the disk it throws it towards my position but, it sticks to my location like a homing missile.

    Is there a way for me to add my location as a target for the bullet without it following me?

    Thanks a lot in advance

    --

  • I works perfectly, LittleStain!

    Thank you all, again.

    --

  • QUOTE: That would consist of adding another condition

    car.angle is not within 10 degrees of car.car.movingangle

    or something similar.

    That's exactly what I've been trying to do but most likely I'm not applying the right formula, since I'm still a bit of a noob...

    --

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • First of all, thank you all so much for the help. Both solution seem to work brilliantly when it comes to adding score when it drifts.

    My issue right now is that i need to increase the value of the angle so that the drift score doesn't go up as soon as you steer the car. In another words, the drift score only goes up if the drift angle is above a certain value.

    I'm gonna do some testing with some calculations but, in the meantime, if you guys any valuable info, it's always more than welcome.

    Thank you

  • Hello, Everyone.

    Once again I need to borrow your knowledge to solve a peculiar problem...

    I'm creating a top down racing game with a "Tokyo drift" theme going on

    So far, I'm just using a car behavior for the "player" and some global values for the damage on the car when it hits something. Right now i'm working around the idea of getting points when you drift, very similar of what happens in the drifting challenges on the Need For Speed: Underground series.

    I've tried using the angle of the car but, on a top down racer you can just get points by pointing the car to the right angle without drifting - erase this idea.

    I've also tried creating little sprites on the front and back of the car and use the angle between them as a comparable value to use but it just results on the same issue of before.

    What's the best way for me to achieve this drift score mechanic on C2?

    Thank you all in advance

  • Hello, Everyone!

    Once again, I need some help...

    Is there a way for me to create an action based on an increment of the global variables?´

    I'll give you these examples:

    Global value "score"

    "Every 100 points, the enemy become's faster"

    Global value "day"

    "Every 5 days, you change layout"

    Thanks in advance

    --

  • Thank you all for the awesome help!

    I followed chrisinfinger's example. It worked great!

  • Hi.

    I'm currently working on a top down survival game in which the bullets are spawn from the player sprite in the direction of the cursor. Pretty basic...

    What I need now is to create a system that when the "bulletcount" variable reaches 0, you have to press a button (could be "R") to reset the value to its original number and enable the bullet spawning again.

    What's the most efficient way for me to create this?

    Thanks

    --

  • Problem Solved ---

    Noob mistake nº1:

    Forget to add - hunter > hunterhealth = 0 > Destroy

    Narf!

    --

  • [quote:2jut0f65]Are bullets getting destroyed, or do they pass through? Could be that the origin point or the collision polygon of the hunter is not as it should be (= collision wouldn't happen at the place where the image is).

    here's a screenshot of the spire editor with the collision area...

    As for the instance variables(iv) question, I've created a new sprite and proceeded to go through the same process as the other enemy, step by step. The only difference is the name of the iv which went from "zombiehealth" to "hunterhealth" to mach the enemy's identity.

    --

  • Hi

    I successfully managed to add an instance variable to an enemy of 3 health and also managed to take 1 health with the collision of a bullet.

    Problem started when I created a different enemy with the exact same instance variable (with a different name, of course) and the bullets aren't doing anything to him. I've tried absolute everything and it still has a different outcome, although the two enemies are technically identical.

    I'll post a capx here...

    Is this problem familiar to anyone of you?

    Thanks

    3rdclover

  • Hi worked! Thank you all for the help!

    --

  • I'm sorry for not mentioning this before but I just started to work with construct 2 so, although I appreciate all your valuable input, I'm too much of a noob to keep up with it.

    Do I have to create a global variable to the amount of cures i have on the scene?

    Thank you

  • Hello!

    This is my first question since I've signer up to Scirra so, here it goes...

    I'm creating a top down zombie survival game and I introduced a mechanic that, after you get "bitten" by the zombie, a "cure" sprite is randomly created on the game.

    My question is: How to I prevent another "cure" to be created while the first one is still on the scene?

    Here's my line:

    Thank you in advance to anyone who reply to my question

    Cheers

    3rdclover