lionz's Recent Forum Activity

  • It is like this by default. If you said bullet on collision with object A > destroy, why would it be destroyed on collision with object B?

  • Yeah not instance variable, it is a condition on the object you can 'set y' every tick, so you can set y to current y + or - a value which moves it. For clarity.

  • Are you sure that's a screenshot of your code? :) You use an instance variable on the platform and depending what it's set to, you do object set Y to self.Y+value to move it down the screen, or object set Y to self.Y-value to move it up.

  • If you are making a top down tank game then you should really make use of the Pathfinding behaviour. Check it out!

  • If you use the event above running every tick then it should be setting position to the enemy constantly as it moves.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • To keep locking on in general you say 'pick nearest' enemy to player (a condition on the enemy object), set black box position to enemy.

  • Yeah the question is too vague and the example games you gave are RTS which tend to have the same maps each time as campaigns so you would have set levels and not sure how that relates. What you are describing with the layouts though isn't possible, you don't create them dynamically during run time. You would have one layout for the level, and each time load the level you want, there is no need to create further layouts. If you're referring to random generation of terrain you use arrays and load the levels from them but it gets a bit complex unless you're using a tilemap. There should be some posts around the forum about that kind of thing.

  • Rather than use 'set animation' for all the events you should give your player a state (instance variable). Then you can say if C is down set player state to crouch. If player is overlapping crouch area then set player state to crouch. Then you have a single event for the animation, if player.state is crouch, set animation to crouch. Combine this with an idle state that you set on C released or NOT overlapping crouch area and it should be fine.

  • Some conditions are 'trigger events' which you can't invert. Anything with the green arrow.

  • If it is very simple follow logic then you can use bullets that set angle toward player (see the enemies in the 'ghost shooter' tutorial). For more complex following you can use the 'Pathfinding' behaviour, there are also example levels and documentation on how to use this.

  • Yep overlapping a crouch zone seems fine. You put an invisible sprite in the tunnel area and make sure you cannot touch it unless you have already crouched and moved forward a bit. Then you adjust your on C release logic to include NOT overlapping crouch zone. That means when you release C, you remain crouched, but when you exit the crouch zone you would return to normal, also pressing and releasing C in the crouch zone wouldnt change anything.

  • If it's a side scrolling platformer then you use line of sight combined with platform simulate left/right based on if the enemy x is greater or less than the player. Or enemies could be bullets where you set the angle to 0 or 180 when they have line of sight. There's lots of ways to do it, you didn't give much information about your game though.

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