lionz's Recent Forum Activity

  • Hiya, gameplay like this is always a little tricky but you can take duelling objects out of the equation by using instance variables. You can say if a knight overlaps a monster, start a duel, this could be a function or just an event. You set an instance variable on the knight and monster to true (boolean), or to some value to show that it has been picked and is duelling i.e. changing a 0 to a 1.

    Then you use the following logic in general, knight is overlapping monster and monster has not been picked (variable is not set) then start a duel. Therefore if the monster is picked then the knight will walk past it and look for another one.

  • You could try the Construct Community discord discordapp.com/invite/dZDU7Re

  • Hmm a few ways but depends how your game works, it gets a little tricky.

    When you spawn the sprite on the family, you can relate them to each other by for example setting an instance variable on the sprite to the family object UID, or you could have a family instance variable on the family object, and when you create the sprite, set a variable on the sprite to the same value, so family.var is 5 and sprite.var is 5 for example and they are related.

    Then when the sprite is destroyed, you find the family object that has the same var value, and you set the family object picked variable (from the other comment 0 to 1) back to 0 (unpicked).

    Another way is for example if the sprite always overlaps the family object, you could say on destroyed pick family object that is overlapping sprite and set the variable back to 0 (unpicked). This only works if that is true though about the overlapping.

    In general, you just make the sprite created relate to the family object in some way, usually with variables.

  • But I do not know how to cancel the conditions of the the instance variable is at 0.

    ?

  • If I'm understanding it correctly, do you mean pick a family instance that has not been picked yet?

    When you pick a random family instance to begin with, and spawn a sprite, you can set a family instance variable from 0 to 1 for example.

    Then your logic becomes pick a a random family instance + condition : family instance var = 0 (not picked yet).

  • I'm saying it's a bad bug, you cannot progress past level 3 that's all :)

  • Three level actually has an error on which it can not pass. Seias i will correct him

    https://preview.construct.net/#hne2npcx

    That makes sense then, sounds like a blocker to me :)

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I had a look at an earlier version of this. I always get stuck on level 3. Also my feedback would be that it isn't fun. Also there is a bug, you can die and land on the door at the same time so you still progress to the next level.

  • There is 'Stop All'...

  • On its own it will do it constantly. You need to have it as a sub event under 'on start of layout', so press S on the 'on start of layout' event and add the logic there as a sub event so it triggers once on start of layout.

  • There is a system 'pick a random instance', then choose the object as family.

  • You do not have permission to view this post

lionz's avatar

lionz

Member since 5 Aug, 2013

Twitter
lionz has 79 followers

Trophy Case

  • 13-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

26/44
How to earn trophies