lionz's Recent Forum Activity

  • It's pretty obvious if you compare the two, look at the order of the events in actual compared to test. The test code is correct picking, every time you pick an enemy you set the name to the glob var then add 1 to glob var. In actual you are adding 1 to glob var for every enemy, so the total number of enemies, then setting the enemy name for all enemies to the glob var number. Be careful with the order of events and sub-events, you've done it correctly in test code though so I can see you know what you're doing.

  • You can do all of this with the Persist behaviour, it will remember what you picked up when you go between rooms : https://www.scirra.com/manual/161/persist

    In terms of your actual logic, you can't pick the sprite plugin, only the objecttype.UID so spritecoin.UID, spritediamond.UID. What you could do is put all collectable items into a Family and use Family.IID.

  • On enter pressed is one event.

    Compare XYZ is a new event that's correct but instead of picking System, you pick the Array object and the conditions are in there.

    If you still can't work it out I can make a file later on today.

  • On enter pressed ,

    Set a global variable i.e. name to textbox.text (the input)

    For each XYZ element,

    compare current value = name > something happens

    else

    something else happens

  • In each event yes both conditions have to be met, it looks like both the turns variables are always true but I can't see the rest of your logic. It's an easy fix, rework the logic like I mentioned in first response or feel free to send over C3 file so I can edit it.

  • If turn1 always = 1 then changes to right_wrong variable when answering question 2 will affect question 1.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Does it have platform behaviour? If so, it should be on the ground. If you've used the pathfinding behaviour that is more for 8-direction top down style game. If you need more specific help you'll have to show us what you've done.

  • The issue isn't really about it running once, more that it's just not keeping the values because 'turns' changes and it looks like you are restarting the layout? You could do something like create a bunch of global variables for the questions i.e Q1, Q2, Q3. and then set Q1 to 0 by default, 1 if correct or 2 if wrong. Then you could say for ico1 set animation frame to Q1, for ico 2 set animation frame to Q2. So it will be 0 at the start (an X) then if you get Q1 correct it will set animation frame to 1, if Q 2 is wrong, it sets animation frame to 2 etc, using example animation frames. There are loads of ways you can do this.

  • Most events are checked every tick even if you don't add 'every tick'. It doesn't affect performance.

  • Pathfinding to location if using 8-dir, the 'stubbornness' will be some bugs that need to be ironed out. You could set player to bullet and move at angle toward location but sounds like you are doing an RTS which will work fine with pathfinding. Projectile attacks again use bullet behaviour with set angle toward enemy. If you need any assistance with bugs then feel free to send me capx.

  • Export in what format?

lionz's avatar

lionz

Online Now

Member since 5 Aug, 2013
Last online 10 Mar, 2025

Twitter
lionz has 73 followers

Trophy Case

  • 11-Year Club
  • Jupiter Mission Supports Gordon's mission to Jupiter
  • 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
  • Forum Wizard Made 5,000 posts in the forums
  • Regular Visitor Visited Construct.net 7 days in a row
  • Steady Visitor Visited Construct.net 30 days in a row
  • Enduring Visitor Visited Construct.net 90 days in a row
  • Unrelenting Visitor Visited Construct.net 180 days in a row
  • Continuous Visitor Visited Construct.net 365 days in a row
  • RTFM Read the fabulous manual
  • Great Comment One of your comments gets 3 upvotes
  • Email Verified

Progress

24/44
How to earn trophies