ChrisBennettStudio's Recent Forum Activity

  • Can you post a capx, or a picture of your events?

    Here hope this works! https://onedrive.live.com/redir?resid=9 ... ile%2ccapx

  • Hello there, So I'm making a chasing game and I'm trying to find out why when I hold the shift key the stamina bar's width keeps getting wider instead of smaller.... Could use some help!

    Thanks in regard, AfterLife

  • You are welcome!

    An important note is that maybe there are best ways to achieve similar results. So, you can mess with the code and improve it!

    What I did here is setting a random X and Y location every random amount of time. This location is stored in the two variables and is based on the window size, so the footsteps will never get lost beyond the screen.

    The amount of time you can configure to fit better your project.

    Another important thing is know exactly what you want when the random time is reached and a new location is setted.

    In this case, I wanted that the footsteps turn slowly to the location.

    So, in addition to being always moving forward, the footsteps will, with the lerp action, always turn to the specified X and Y in the screen.

    Edit: Oh, I forgot.. the new location is setted when the timer reaches it's limit, but when the distance between the actual location and the footsteps is less than 30 too. This way, the footsteps will never be stopped.

    Made sense! Thank you very much!

  • Something like this?

    https://onedrive.live.com/?authkey=%21A ... ion=locate

    If you have any question, just ask it <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile">

    But could you maybe explain the process in a watered down version?

  • Something like this?

    https://onedrive.live.com/?authkey=%21A ... ion=locate

    If you have any question, just ask it <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile">

    Oh my God! Mate thank you so much I've been looking all day! I'm trying to get serious with construct since i graduated high school and I didn't even know how to do that :/

  • Hello there, Just wondering if someone could help? I have a game where you are a pair of footsteps and on the main menu I want those footsteps to move at random around the screen. I have a walk animation that I want to use.

  • Please change your signature.

    Children as young as 11 are regular visitors to this forum and such profanity is not appropriate for this forum. I'd be surprised if anyone would find it appropriate.

    So Sorry Man! I guess one of my friends was using my computer for a day or so! Changing it now!

  • Hello, So I have a sprite pack that I had recently bought.... It looks good until I put it in construct 2! What happens is that the sprite will look awful and blurry. Is there anyway I can Make a Sprite bigger but keep the HD quality?

  • Here is a basic solution using the pathfinder plugin, in combination with the Line of sight plugin. I haven't implemented any backstabbing logic, but the enemies try to follow you if they have a direct line of sight and you are within their viewing distance.

    https://www.dropbox.com/s/5fnknrr5b79svra/AI.capx?dl=0

    Thank you soooo much!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • LOS sometimes has its own mind or breaks.... instead of LOS you can use the system expression compare two variables and calculate the distance as this :

    distance(ai.x,ai.y,target.x,target.y)<100 ---->actionfor AI sprite{set angle towards position (target.x,target.y) } / action2 for AI sprite{ moveforward 2px+(60*dt)............}

    the 100 acts as the visibility... however this has no view cone as los has its automatically 360 view.. so even if you come from behind it... will still follow the player.

    So essentially I cant make it where the enemies view is the only way i can be found and i was thinking of making it where i could backstab the enemy sneakily and that would be the only to kill them

  • Giving some more info about how your game works, or even better, posting a capx file that includes the part that you want us to help you with, could be very useful to the rest of us, in order to help you.

    So I figured out how to make the AI chase the player but the AI wont wander aimlessly around the map! Also no matter where i am in the layout it will find me is there anyway that i can make it to where only a certain distance or if i can only be seen where the AI is looking?

    and i dont know how to post CAPX file on here.... :3

  • Hello there,

    I have an issue that i need fixed. I'm making a game that i think would be really cool but i cant execute it! I'm fairly new to Construct 2 and I just bought it so I know pretty much nothing . So I need to make the AI or Enemy chase the player when in range ( Ive already made it turn towards the angle of the player but the LOS is indeed broken.... So I cant figure out why the AI wont go after the player? Any help would be nice!

    Thanks in return AfterLifeGames!

ChrisBennettStudio's avatar

ChrisBennettStudio

Member since 17 Apr, 2016

None one is following ChrisBennettStudio yet!

Connect with ChrisBennettStudio

Trophy Case

  • 8-Year Club
  • Email Verified

Progress

9/44
How to earn trophies