samsles's Recent Forum Activity

  • Hey lionz,

    I got it working with a single, array!

    The one thing I haven't figured out how to do is pop the values within the same condition. When I try that, it ends up deleting the y axis. I'm still tinkering though.

  • Hey Cascade-games, thanks for chiming in! You're right that using 2 arrays was easy. I just feel like a failure for not being able to figure out how to get it to work with a single one.

    This is a super cool solution. I love how you even visualize the path the enemy is taking. I'm going to have to study your event sheet to make sure I'm following but this could be a great alternative to my approach. Thank you!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hey lionz I can't get this to work for the life of me. Any chance you can set up an event sheet?

    I've tried a ton of combinations of push, insert and set actions for the array but I can't seem to get the y value to go into the right place. The only way it's worked for me is by loading a premade array from the array editor. This is what I want my array to look like, where 0, n contains the x coordinates and 1, n contains the y coordinates.

  • Thanks for the quick response, lionz! I'll try what you suggested.

  • Hey everybody, I'm new to Construct and programming in general. I'm working on a prototype for a game where a shadow enemy follows the player's exact path. I have it working here: media.giphy.com/media/YkfNNiJS1ML5sUmz5R/source.gif

    Here's my event sheet:

    I have a couple of questions:

    1. Is it possible to do this with one array instead of two? I wasn't sure how to get the Y value for a single array.

    2. Should I be worried about performance/storage building these arrays? E.g. should I try to clear the values that have already been used?

    Thanks for your help!

    Tagged:

samsles's avatar

samsles

Member since 8 Jul, 2020

None one is following samsles yet!

Trophy Case

  • 4-Year Club
  • Email Verified

Progress

5/44
How to earn trophies