mogey's Forum Posts

  • Hey there, I want to find the distance between two objects, and use that distance so that if its less than a certain amount, a certain something will happen.

    Also, How would I create this, at the moment I have a zombie, and if it has LOS to the Player, it will set a waypoint at the players position. However this causes the zombie to move to the players last position, and makes the game easy to play. I want to have it so that the zombie will always move towards the players current position, and not going to its last waypoint before doing so.

  • Thanks siron and the_chosen_byte.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hey there construct community. I'm trying to make it so that when a player enters a building the roof texture becames very transparent. How do I edit the opacity of a layer through expressions?

  • I guess I'll go with the array then, however when storing values in the array can you use strings? Or do you have to use integers. Also how do you access the array using construct's expressions.

    Having a problem now, I added a condition to shooting to check if the index 1 is equal to 1, then allow the player to shoot. I also set up an event so that when the player collides with the rifle pickup it sets the index 1 to 1. Yet the player still cannot shoot.

    By the way I know that using global variables for this would work and be much easier, but I want to learn arrays.

    Also, how would I add vehicles that the player can enter and leave?

  • :D Thanks a bunch zyblade and Tulamide!

    Also Tulamide, so your example cap for the array is basically writing data to the array that stores the animation frame its on? And how would I go about creating an inventory using an arrya, would I write a variable to an X,Y position on the array? Or would using 'S' be more useful for this?

  • Also, do you have any links to a tutorial that explains how arrays work? I'm confused by them.

  • How would one go about creating a minimap/radar that sticks at the corner of the screen and only displays some objects on it?

  • Also how can I make a sliding door, as in a door that slides up slowly, then back down and for having buttons that activate it, could I just make another sprite, make it always center on the player and be the player's "hitbox" and have it so that whenever it collides with the button it triggers?

    And last but not least, how would I be able to load the sprites and play them as animations, basically I want to be able to put the loaded sprites into different animations and be able to play them.

  • Thanks!

  • I would like my game to load sprites from the application folder so that textures can be modded? Any help on this?

  • Thanks alot for the help.

  • Thanks for the example, I tried implenting it into mine and it works, but the zombie will not face the direction he is moving in and also before I forget and open another topic, what expression could I use to allow the user to change the resolution.

  • Now it just spins around in a circle forever.

  • I am stuck on creating a zombie AI, I used the RTS behavior and the LOS behavior,

    Here is my current events,

    + System: Always (every tick)

    + Sprite4: On LOS to Player

    -> Sprite4: Move to Player

    + Sprite4: [negated] On LOS to Player

    + System: Every 5000 milliseconds

    -> Sprite4: Set angle to random(360)

    I need to make the zombie follow the player if it can "see" the player and then attack it(decrease health).