lionz's Recent Forum Activity

  • You're going to have to set the carpartID for individual objects if you are creating them like this, just add the action to each object created, not for the family at the bottom.

  • Filter out the jumping with 'is jumping'. And then say 'is moving' and not jumping (is jumping inverted) for walking, or you can use 'is moving' and 'is on floor' together. You will come across bugs with a platformer that's just normal. As for character design, not really for me to say but seems fine. The music is a bit strange though.

  • You didn't really describe the issue that you are having with multiple sprites, what's the issue? Tutorial looks good and would allow a player character.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • If you're using parallax 0,0 technique then it needs to be in the layout view where the player starts, currently you have it way off screen.

  • My approach would be to give the sets an identifier as they are created, so the parts have a variable and before you create a set of them, you increase a global variable by 1 and set the car parts ID variable to that global variable. So you end up with something like : 5 parts created all with ID=1, 5 parts created all with ID=2 etc

    In your current logic you are picking a random car part instance out of ALL instances that exist. You could now limit this to pick a random car part instance where car part.ID=global variable. This picks one of the 5 most recently created car parts.

    Also with your current logic it looks like you start with a family then break it down into individual object types. I don't see any reason why it couldn't be family object isSelected : set animation frame to 0. Families are used to minimize the redundant events you can see here.

  • I don't really see a problem as it's always a single event with sub events. If you want to make it reusable you can create some kind of function where you call and the parameters are new percentages or possible values to be chosen.

  • Use floor(random(100)) to set a local variable to a random number from 0-99 then adjust each possible outcome to be within a range of values that act as percentage i.e. if var is between 0 and 9 then that's a 10% chance.

  • Yeah Families then. Put rogue and mage into a family where Duration and MaxDuration are Family instance variables. You can still refer to the classes separately for some things but for those events you can use single events with family, so rogue.duration and mage.duration become family.duration which applies to both rogue and mage.

  • Where does the redundancy come into it? If you're talking about using the same events for multiple object types then you can put all objects in a Family and use the Family for picking.

    I don't know if that's what you're after but when you talk about events that are becoming redundant and you want to pick 'an object' rather than a specific object type then Family works well to refer to any number of specific objects that exist in the Family.

    If this isn't the case then please provide some more example events to demonstrate what is redundant for you. If I've understood it correctly I think what you might be describing though is not possible as Construct works by picking instances of an object type on the left then applying the action to those picked instances. Using Families may get you somewhere close though as objects can be grouped.

    Take a look at how events work, maybe that will be of some use : construct.net/en/make-games/manuals/construct-3/project-primitives/events/how-events-work

  • Hi, are you referring to global variables? There is a system action you can use 'Reset global variables'.

  • Well you are setting layer 1 to be visible on lives=0, but the level failed is layer 3. Also there's nothing to set the level failed message to the player position so you might not see it unless you are standing next to it.

    For anim events you can try :

    Platform is moving : set animation to Animation1

    Platform on stopped : stop animation, set animation frame to 0

  • Yes easier to debug with the file otherwise it's guesswork.

lionz's avatar

lionz

Member since 5 Aug, 2013

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