lionz's Forum Posts

  • You should make back ups. Do you definitely have the latest version of C3 installed, if so what version? Also there's a chance it's not properly installed due to browser or cache issues. Share the file maybe someone can open it. Worst case maybe Ashley can attempt to recover it.

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

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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.

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

  • On the Scroll To behaviour there is a screen shake, see if that fits your requirements.

  • As far as I know that's how fade works and you can't change it. Making your custom one with opacity is fine as that's all the fade behaviour is doing.