lukezero's Recent Forum Activity

  • Hi guys!

    I've been trying since yesterday to implement a MegaMan shot charging effect (image below) in the engine through sprites and particles, but still without success. This would actually be quite easy if the Particle object had an inverse flow.

    Below is my failed attempt at doing this:

    I thank you in advance for your attention and collaboration. ^^

  • Alright I made an example capx, feel free to change the distance/speed values to fit your needs, but that should solve your problem (works with multiple enemies instances) :

    https://drive.google.com/file/d/1F5L75Z0UjxcNAGX2NukdTzTFaiYE7p7O/view?usp=sharing

    Thank you very much, dude!

    Your project is wonderful! It served me very well! :D

  • Alright I made an example capx, feel free to change the distance/speed values to fit your needs, but that should solve your problem (works with multiple enemies instances) :

    https://drive.google.com/file/d/1F5L75Z0UjxcNAGX2NukdTzTFaiYE7p7O/view?usp=sharing

    Thanks, man! I'll test and study it right now! :D

  • No i mean, was it meant to activate a random enemy if many enemies are on screen?

    Also, what's the Line of Sight distance you used?

    For now, this enemy only appears alone in a stage/layout. The Line of Sight range is 500.

  • And what about the "Pick at random" condition? What's the effect you're trying to achieve with it?

    Also what's the Line of Sight reach?

    I already tried it and don't worked. :(

  • So the enemy stays still, enters a short ALERT phase when detecting the player, then start moving toward them; Once close enough, if the player is not attacking already, the enemy will attack, did I get everything right?

    Exactly that! :D

  • I see many issues in your events logic, can you describe me how your enemies are supposed to behave exactly? I'll make an example capx, that will be easier than writing an essay;

    If possible link me your capx file, that'll be faster to edit

    Sure, I can explain it to you, man. :)

    My enemy have many behavior states: idle, walk, alert and attack.

    He usually stands still (idle) and becomes alert when he sees the player from a certain distance (Line of Sight and then alert state). Then he follows the player and delivers a heavy attack on them (his only attack, slow and strong). He only attacks when he is a certain distance away from the player.

    These player boolean instance variables are to prevent the player from attacking when he is being attacked. :)

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • What are the events for the ATTACK state of an enemy? This is probably where the problem is

    Follow below:

  • Hello, you need to use the "For Each" condition at top of event 27 to be able to pick the enemies correctly and compare their distance separatly

    I tried here, but it still doesn't works. :(

  • Hi guys!

    In Construct 2, I'm trying to implement in the AI ​​of a wandering enemy the reaction of attacking the player only when it sees the player (Line of Sight), which activates a "state" instance variable (alert) and finally is at a distance X from the player.

    As shown in the image, I tried using "Compare two values", "Pick by comparision" and "Is overlapping at offset" and I couldn't.

    Thanks one more time!

  • You do not have permission to view this post

  • It’s probably not random.

    You sound like you have a specific behavior you’re after that you have footage of or have seen. You could start by examining the motion of one leaf and trying to break it down into a path that you could replicate somehow. Worst case you could maybe use a timeline to manually plot a path. With two or three varieties you may get enough variation.

    At the other end of complexity you could try some grid based fluid dynamics to model airflows. Then the leaves would move based on where they were within it since you would have velocity at any point. Then you could model the leaves as slightly curved apply the wind to them based on the angle the wind hits them.

    There are probably many options in between. I don’t have any specific examples in mind though.

    Ok, dude. I'm doing some tests here. Thanks one more time for you help. :)

lukezero's avatar

lukezero

Member since 4 Oct, 2014

None one is following lukezero yet!

Trophy Case

  • 10-Year Club
  • Forum Contributor Made 100 posts in the forums
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

14/44
How to earn trophies