lionz's Forum Posts

  • Give the enemy an instance variable to track when it's been teleported to or 'used'. Then say every 0.2 seconds, system pick a random instance of enemy where variable=0, then with actions set player position to enemy, and set enemy variable to 1.

    All of this would be inside a condition that player has LOS of enemy to pick only those enemies you need. Of course after such animations you pick all enemies and reset the variable to 0.

  • You could put the original position data on the object as 2 variables then on start of layout set position based on x=var1,y=var2

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You set the damage variable at the Family level then it doesn't matter what collided with the player, you subtract Family.damage

  • When you collide with the water, then that water instance is picked. So the events following that for overlap would only refer to the water you collided with and not other instances of water. In your events what you are asking is - when I collide with water, are these 4 points overlapping the water I collided with.

    A potential fix would be to open up all the water instances to be picked again as a sub event, so use System pick all water, then indent again and add your overlap checks for point overlaps water. This will be more in line with what you want I think - when I collide with water, are any of the 4 points overlapping with this or any other water.

  • Probably for what you're describing you put the events into groups on the same event sheet and enable/disable them.

  • It's difficult I guess, this is the latest I could find from 2 years ago gamezdev.com/construct-2-games-to-apk-using-cordova

  • Objects reset to their initial states when you go to the layout unless you made them global

  • Yep so as I mentioned what are you trying to reset that is not resetting?

  • There is a separate action 'Restart layout' which does different things than 'Go to layout' such as resetting the groups. If this doesn't resolve the problem then let us know what exactly you are trying to reset.

  • This doesn't make much sense, probably why no one responded. You could provide an image demonstrating what you mean.

  • Compare enemy Y is less than player Y

  • > Look at Layers bar and count them

    Lol, Of course I can do that but it changes all the time because I add things and I wanted it to be automatic and not change the number every time.

    There is no such thing as : Layers.count?

    Hehe I know. There isn't anything like this, there really isn't a reason to use number of layers in events and logic.

  • Look at Layers bar and count them

  • Where is the challenge with this game? The player has HP but the enemy never attacks.

  • You do not have permission to view this post