lionz's Recent Forum Activity

  • Compare two values is for comparing one value or expression against another. I'm not sure what you're doing here but it's not a bug.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hiya, families work well for applying logic to all objects at the same time and you will be fine to spawn a random object inside family when you opt to create the family object. When you start trying to identify individual object types within a family this is where it becomes difficult because you can't do it. For this type of logic you need to return to using the object types and instead of spawning a 'family object' you would do something like for example, pick a random number from 1 to 5 and spawn the object related to that number, if that object is already on screen or count > 0 then destroy it and run the randomizer again. You would need to break it down to check if Object A exists, Object B exists etc, not the family.

  • Player is overlapping object lava, subtract 3 from lives variable. Or if it's every X seconds you can add this condition too and subtract 1 from lives.

  • This looks like first person perspective from a helicopter, not top down perspective. To achieve that gif you would create a cursor and have the bullets angle toward it and adjust their scale as they move.

  • Unfortunately that's doing the same thing but has moved to a function so will produce the same error. You should move the selected player to a global variable, something like this :

  • Cool you can remove that file now. I don't know how it could've worked before but you are trying to create the player with platform behaviour inside the marker object at xy. Better you give it some space so changing to marker.y-20 should work well enough.

  • Not sure then, it's just guesswork, you'll have to share the capx so I can debug it :)

  • You do not have permission to view this post

  • Can't see your game so no idea what that means. Post a screenshot of the events for the character switching.

  • Percentage of the hp to apply to any hp amount would be like :

    25% = maxhp*0.25

    50% = maxhp*0.5

    75% = maxhp*0.75

    To set animations based on this they would probably be a variable and you check between the values.

    So for first animation Is between 75% and 100% = is between maxhp*0.75 and maxhp

    second anim = is between maxhp*0.5 and maxhp*0.75

    third anim = is between maxhp*0.25 and maxhp*0.5

    final anim = less than max hp*0.25

    And so you don't have to keep writing formulas you can assign them variables :

    var1 = maxhp*0.25

    var2= maxhp*0.5 etc

  • I would have to guess that it's not working because events run top to bottom, it might be setting a boolean true and then false again in the same tick. If your conditions are set up like if false then set to true, if true then set to false. You could press a key, then pass the current variable through a function to check it.

  • Persist is a different thing to a save game. Persist is saying that during the game the chest will keep the same state between layouts rather than refresh its state and variables. When you start a new game it is new data unless you are loading and saving. You can use system save to save the state of the game that includes the objects with persist at that point, and then when you launch the game load the system save.

    construct.net/en/tutorials/how-to-make-savegames-313

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