Calfuso's Forum Posts

  • I am going to keep replying until i get an answer.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • If this question can be answered i would like an answer.

  • I have asked a similiar question before but now i ask it whit more clearity. I want an enemy to move to the left when it is a certain distance from the rigth side of the player. Then it is going to pass the player, keep moving left. When it is a certain distance away from the left side of the player it is going to switch to moving rigth. Then it is going to pass the player and repeat the process so it basically follows the player. I tried making this work by doing this.

    Enemy-Event-Is whitin angle

    Whitin: 180

    Angle: 0

    Enemy-Sub event-Compare X

    Player.X-1500

    Enemy-Action-Set value

    Action

    "left"

    Enemy-Event-Compare instance variable

    Action

    Equals to

    "left"

    Enemy-Action

    Simulate control pressing left

    Enemy-Event-Is whitin angle

    Whitin: 180

    Angle: 180

    Enemy-Sub event-Compare X

    Player.X--1500

    Enemy-Action

    Set value

    Action

    "rigth"

    Enemy-Event-Compare instance variable

    Action

    Equals to

    "rigth"

    Enemy-Action

    Simulate control pressing rigth

    Whit this it should work. But it doesn't. So what do i need to change to make it work?

  • I would like an answer.

  • I would like an answer.

  • I would like a answer.

  • I would like to have a clearer version of the previous answer or a new answer.

  • I would like to have a clearer version of the previous answer or a new answer.

  • I would like to have a clearer vesrion of the previous answer or a new answer.

  • I would like to have a another answer or a clearer version of the previous answer.

  • Do X Event mean at overlapping at offset X and Y?

  • Okay so the problem is solved. I intended to share my capx but i changed my mind since i didn,t need to. The reason why i thought that animations couldn't start timers was mainly becuase of one sprite that it never worked on no matter what. So i assumed that it wouldn't work whit other sprites becuase of that but after some testing it turns out that it works for other sprites.

  • Yes.. but you would have to get creative.. it wouldn't work using existing solid behavior though.

    You would need to have events that on-overlap or on-collide decided if the object could pass through and then allow such action.

    Search forums and tutorials for doors or making a door... sounds similar to what your trying to do.

    What do you mean whit X event. I get the rest but not that.

  • Okay the seperate layout works now. So there must be a problem in one of my event sheets. The fact that sprites animations tend to loop even if Loop is set to No could be entire problem. So since i have no other choice here is the construct 2 file.

    https://www.dropbox.com/s/hktu37cy3ikei ... .capx?dl=0

    You don't have to comment on the fact that the file takes up alot of memory and the fact that i have alot of events in one event sheet or that i have alot of sprites. You shouldn't deeper into the project then necissary. Just make it so you can make a sprite that in a layout that is powered by Event Sheet 4 able to start timers based on their animations. Make a new sprite and make it possible whit it. Don't use a already existing sprite.

  • I can't find another way to make the events i shared as i image. To me they look like they should work perfectly fine. But they don't and that means i need to change something and that,s what i need help whit. Like i said i have the problem that sprites animations tend to loop even if i set them to No and that is also something i want help whit.