ZeldaVerde's Recent Forum Activity

  • So, I'm making a tower defense game and I made a family of sprites with turret behavior, but there is one turret from this family that I want to be the only one to aim for a specific target object... How to do this?

    When I try to add the object I want as a target for that one turret (not one instance, one object), it ends up being added to the hole family.

    Thanks in advance!

  • you can use my project to test which number correspond with each direction, then use:

    detect angle <number you got from testing> -- set animation to <the animation you want>

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I was playing around with the pathfinding behavior trying to find a solution for this, and I discovered an expression (Sprite.Pathfinding.MovingAngle) which I didn't understand very well, because the value doesn't seem exact, but it should work for you.

    Here is an example: drive.google.com/file/d/1msNG-Z85tBGa6Yl7b5uEyOhD9R2A0lHB/view

    Now you just need to detect this value and set the animation accordingly, and that should be it!

    (;

  • I am making a tower defense game, and to make the enemies follow the path I want them to, I created an arrow sprite with four different animation frames pointing to the four directions. When I am creating a level, I place them with the right frame set where I want the enemies to turn, and then I use:

    Arrow on collision with Enemy

    detect the arrow frame ---------- change enemy's direction instance variable according to the frame

    Detect the variable -------------- move the enemy accordingly

    I also programmed a pause feature using System --> Set Time Scale to 0, problem is, tile size for enemy's tile movement behavior is 16 x 16, the arrow sprite is 16 x 8 (see image below for better understanding), and somehow this makes it so when I pause the game while the enemy is moving from one tile to another to get to the arrow, it goes a bit crazy... I can't explain so I'll post another image. Even debug pause does the same thing!

    Image 1: drive.google.com/file/d/1Abl5NDNSF2hLWXcxTOIJVOT_SzibHd0H/view

    Image 2: drive.google.com/file/d/1ZQ67xbwr8qGzsQjVK9Fn8C2qwJQxYSHb/view

    That doesn't make any sense at all, the enemy shouldn't be able to move diagonally!

    Thanks in advance (;

  • Ok, thank you for everything (;

    Edit: Just saw your example, why did you set the bullet angle to turret angle? Don't you know construct does this automatically?

  • I already used ImagePointX/Y(<number>) before and it seamed to just use the origin instead... Any idea why?

  • Oh, sorry, I think I didn't make it clear that I need the origin to be in the top left, but the turrets to aim for the center.

  • I mean, it would be very strange for the bullet to hit the center of the enemy while the cannon is clearly aiming for the top left sooooo...

    I mean both (;

  • I am making a tower defense game, and I want the turrets to aim for another image point on the enemies that is not their origin... How to do this?

  • Thank You (;

  • Whenever I try to save or load from Google Drive, after I login, it gives me an error that says, in portuguese:

    Este app está bloqueado

    Este app tentou acessar informações confidenciais na sua Conta do Google. Para manter sua conta segura, o Google bloqueou o acesso.

    Google translate translation:

    This app is blocked

    This app tried to access sensitive information in your Google Account. To keep your account safe, Google has blocked access.

    What to do?

    Thanks in advance.

  • No worries, thanks again then, very helpful

ZeldaVerde's avatar

ZeldaVerde

Member since 11 Nov, 2018

None one is following ZeldaVerde yet!

Trophy Case

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

10/44
How to earn trophies