Ldk's Forum Posts

  • Thank RamPackwobble. Literally thought of that as i clicked submit topic.

  • Hi.

    I need to change the way turrets work. They aim at imagepoint 0 but i want to specify the imagepoint it should aim towards manually.

    Would this be possible to code easily as my coding skills are non existent.

    Edit: I just set a helper object to the head and made the turrets aim at the helper instead of the player

  • Lerp functions do not work. They simply rotate in all angles. Line of sight also doesnt work because if one enemy has line of sight it triggers all other enemies to active as well.

    Is there no simple way of saying rotate towards object CCW?

  • Looks like its because i am mirroring the arms of the enemy that the angles start going lopsided and doing the inverted

  • What im trying to achieve is an enemy constantly aiming at the player. Like a turret. But i want to restrict it to only certain angles.

    But

    If player is on the left of the "enemy" it must restrict it to axis 135 - 220 degrees

    If player on on right of the enemy it must restrict it to axis 315 - 45 degrees

    If i do not use the clamp function then it is irrelevant if the player is on the left or right.

    But when i use clamp, once the player is on the right, somehow the angle runs inverted. So if the player goes up, the enemy aim down.

    In fact i do not think it is inverted. I think somehow it is still restricted to the first angle and not taking the second one into account.

    It should rather be if the player goes up the enemy aims up.

    I will investigate the lerp function and see if that helps my situation.

  • What exactly happens.

    No Clamp everything rotates fine.

    set my event like

    If player X > enemy X : clamp 45 degrees left (135 - 220)

    If player X < enemy X : clamp 45 degrees right (315 - 45)

    I need this to work.

    granpa can you please elaborate what exactly you did to make it work for you.

    Would be much appreciated.

  • The line of sight thing doesn't work too well. It jerks the motion a lot. It snaps degrees too noticeable. Think i will redesign what i'm trying to achieve to accommodate this hiccup.

    Its just frustrating considering if i do not use clamp, then there are no problems. Its only when clamp is used that it starts rotating funny.

  • Unfortunately that doesn't work. Guess i will have to learn java script to build a new function of sorts. Not sure really

  • Hi.

    When the player is on the left of the enemies, they aim at the players head. When on the right they do the same.

    I wanted to restrict the "cone" of degrees that it applies.

    Using the following.

    Set angle toward clamp(Player.ImagePointX(2),180,230) clamp(Player.ImagePointY(2),180,230)

    However since using clamp, when the player is on the right, the angle it moves at is clockwise. I need it to be anticlockwise.

    I tried using the rotate anticlockwise function but this will not do as it doesn't "aim" at an object.

    Is there a way to say Set angle toward clamp(Player.ImagePointX(2),Anticlockwise180,230) clamp(Player.ImagePointY(2),Anticlockwise180,230) or some solution?

  • Alpha Test

    No gameplay yet. Just wanted to see if my art is going in the right direction

  • Hi.

    Thank you everyone.

    Found 2 members.

    Regards

    LDK

  • Problem Description

    After the update from 158 to above, i can no longer open my Capx. Well it opens but the center view, where you see the layout... its just black.

    When i switch to other layouts it creates the mirror effect of surrounding windows. I can no longer see my tabs at the top either. Its just a black bar.

    Observed Result

    When i create a new project it loads 100%. No issues.

    Affected Browsers

    • Chrome: (YES/NO)
    • FireFox: (YES/NO)
    • Internet Explorer: (YES/NO)

    Operating System and Service Pack

    Win7 64bit

    Construct 2 Version ID

    Version 163

    Update :

    32bit works. But 64bit either crashes or or does the above. Will keep using 32bit for now.

  • Hi.

    We are looking for assistance on building game logic.

    Most of the work has been completed.

    $100 paid and or share of profit agreement.

    Its a small task that will include the following

    -Player Fight Combo events

    -Player Powerup events

    -Player Highscore events

    -Menu design

    Please note we are also looking for a sound engineer.

    Thank you for reading.

    You can contact us on crocopede.com

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Agreed. It would be an awesome feature.

    Still trying to make a workaround

  • Hi. Its about a tribal guy who goes on a mission in africa. He has some awesome powers to help him on his journey.

    The face was unintentional. It is from bird flocks in the distance.