lionz's Forum Posts

  • Here's my example of the objects acting independently with LOS, check it out see if it helps. dropbox.com/sh/be0cumtbjy9bx9h/AAB2HSgzGL9ciuxfYj3PWpNxa

  • Could be many things, but the likely thing is you have a destroy action to get rid of all projectiles so you never see them on start of layout. Are you able to share capx? Probably easy to resolve with the file.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Every frame, do you mean tick? How big is a 'place', are you on a grid? Set position would teleport the enemy, is that what you want or do you want more a bouncing off player type thing, for that you can set the angle to reverse of current angle for a bit then continue at the previous angle. For set position teleporting you have the right idea, just calculate which of the 4 directions it's heading in and you can add or subtract x,y based on the enemy direction.

  • Hiya, I don't really understand the logic there as it is just a small section but be careful using functions after picking instance because when you run the function it does not relate to this instance and can pick a different one. You can pass through the UID of the object 1 through the function, and then on function call you can say for object 1 where UID = param 0.

  • I think the main problem with this post is that you didn't explain how it's not working for you. You asked how do I share posts to Facebook news feed, I have tried for days. So in what way is it not working for you? Some more detail around this would've helped other users work out what you could be doing wrong and I see now the thread has become requests for your C3 file anyway.

    Looks like Ashley's comments are implying that although possible to share to the news feed using IG according to SDK documentation, maybe it isn't possible in Construct 3 plugin and you can only share to the messenger part. OP you will have used this more than me, maybe you can explain what you tried and what is and is not being shared when you use the share part of the plugin.

  • Not sure how the underscore worked, looks like the issue is that the values you pushed to the array have a lower case L, the name must be exact. If it's working though, problem solved :)

  • That seems fine if you are creating the sprite later. Probably check the following basics :

    Are you definitely in a Layout called Layout 2 or Layout 3?

    Does the sprite animation "red" look how you expect?

    Is there any other logic that would change the Sprite animation back to something else?

  • Can't invert on collision because it triggers when you hit the platform. Try inverted 'is overlapping at offset' with Y set to something greater than 0. Of course you will need to have this kind of logic initially disabled otherwise it would trigger when player is away from the platform right, but maybe you already planned this.

  • Looks fine?

  • Dam both games are great and now both include ducks!

  • Haha interesting concept, I like this. A little buggy but I guess it was part of a game jam. I had a shark flying at me it was great.

  • Duck is charming, as are the other animals ^^. I also think you should get a super duck, where he wears a cape and costume with Q on it. Yeah...

  • Depends how your enemy is moving :) what logic are you using to move, it is bullet moving left/right? When they attack you can set speed 0 or disable bullet, then if player moves away so distance between player and enemy is greater than 20 for example, then you set speed back to normal or enable bullet. Distance check is distance(player.x,player.y,enemy.x,enemy.y) > 20.

  • Ya that is not the animation but more that the object is stuck and pushing on the player, you need to set a limit distance of x between enemy and player for the enemy to a. stop following and b. start attacking

  • Those events run every tick so too fast to see anything, move to every X seconds for deducting health variables. Animation you can also add to every X seconds so it plays on every attack.