tarek2's Recent Forum Activity

  • dang, thank you for your answer i appreciate it... that's even more confusing why this isn't working lol

    Once the Trigger its true and Runs his Actions then to Run the second Time it needs to become False then True again.

    Example:

    If I have a Sprite with different Colours Frames:

    Frame = 0 >>>Red

    Frame = 1 >>>Blue

    Frame = 2 >>>Yellow

    And I want something to happen only when the (Frame = Yellow) and I only want that to happen once whenever the Yellow Frame its on.

    Sprite Frame = 2

    Trigger Once : Action your Action

    If it Triggers once then unless the Frame changes to Different Frame colour it will not Trigger Again

    So basically the condition has to become False first then True again to Trigger the Next Times

    I will check first to make sure that you didn't Trigger it and the state of the condition is still True

  • crucibus I know this is a different thing than you asked but you may be interested in this Idea that I created which relates to your Question

    https://construct3.ideas.aha.io/ideas/C3-I-700

    If you are interested please Vote

  • There are many ways you could do it, here's one

    I'm using Platform Behaviour instead of Bullet to clip the Enemies nicely to the Ground with their Gravity plus you have more control to do more things like Jumping etc....

    https://www.dropbox.com/s/fied7w93bxqdt9g/Patroling%20Enemies.capx?dl=0

  • Yes, I meant that the condition "is visible" does not exist.

    Why does not this condition exist?

    Not really sure why :) but I think the only one could answer this more accurate is one of the Scirra Team, you could Tag one them to get a Direct Answer, will be your best bet to know it

  • You could do it like gamecorpstudio showed you using Distances

    or

    you could use Line Of Sight also

    I couldn't modify your C3 file as it's above the free version but here is a C2 Capx that you can open on C3

    The range of Fire 400

    CoolDown Between Fires for each Enemy 1 sec

    you can modify them at your will

    https://www.dropbox.com/s/7fkktwqre7winq5/Attack%20Player%20on%20LOS.capx?dl=0

  • Thank you so much for your help and also for including print screens, it's always very helpful :)

    I get a very weird result though and I have no idea why. If I play Level 1 and score 150 and then play the same level again and score 150, the total score says 300. I save everything with LocalStorage and here's the weird part. If I close the game and open it up again the total score no longer says 300, it's 150. Why do you think it shows the "correct" total score when I close the game but not as long as I'm still "in" the game?

    Thanks again Boss

    No Problem, Glad it helped

    For the score are you using a Global variable? because the Global they don't reset as longs you are on the Game even if you change Levels, so if you added to TotalScore 150 and played again and you ad another 150 will = 300

    If you need a new Fresh Total Score every Time you Loop the Array then before the loop set (TotalScore = 0)

    or

    an alternative make the "TotalScore" as Local Variable and at the end of the Loop set txt to TotalScore, the Local Variables are good for this example they reset each Thick you don't need to set (TotalScore = 0) at the start of the Loop it resets automatically

  • Edit again: I couldn't figure out how to add all the values up with the "For each X elements" so I just created a global variable called TotalScore and did this:

    System: Set TotalScore to Array.At(0)+Array.At(1)+Array.At(2) and so on. It may not be the best solution but it worked :)

    You can use (Array For Each X Element):>>> Action Add To "TotalScore" >>>>> Array.CurValue This will Loop and add the current Values for all X on the Array

    An alternative you could use the "For" Loop:

  • Sorry for double post but it didn't let me to edit the first post to add more info

    you should compare the Bandit Health like this <= 0 less or equal 0

    Because when you subtract 10 it could go under 0 like -9 etc....

  • You mean the Condition "Is Visible" doesn't exist? I'm not sure why but

    You could Add a Boolean instead = "Visible"

    Then Check: if

    Boolean is Visible >>>>Your Actions

    Else: >>>>Your Actions

    You can Toggle on/Of the Boolean if need to

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Titan Games

    The Animation never changes the Angle as the origin Point never Moves that's why the tail never moves either this is because you animated the Animation with Frames so the Origin Point its always on the same Place the Angle too

    One alternative will be to create a second ImagePoint on all your Frames at the Exact position where you need the Tail to be pined and instead of using the Pin Behaviour use

    Every thick set tail Position to Object Imagen Point( Your Number)

    Then Tail set Angle angle(Glide5.X, Glide5.Y, Tail.X, Tail.Y)

  • You do not have permission to view this post

  • GalagaNoMore will be very hard to know what is happening without seeing your capx but there is a Temple that you can use as it looks exactly the same thing

    You can find it on editor.construct.net Start Page

    Temple Name: Pop Lab

tarek2's avatar

tarek2

Early Adopter

Member since 26 Jan, 2016

Twitter
tarek2 has 12 followers

Trophy Case

  • 8-Year Club
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • Forum Hero Made 1,000 posts in the forums
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • x5
    Great Comment One of your comments gets 3 upvotes
  • Email Verified

Progress

15/44
How to earn trophies