lionz's Forum Posts

  • on enemy destroyed > show pop up

  • Forum isn't dead, just your post is nonsensical. Follow these guidelines to increase chance of getting a response construct.net/en/forum/construct-3/how-do-i-8/best-help-tips-forum-139528

  • They don't attack the player directly because they are not moving directly to the player, why not just use the player position ? You forced them to move to a random position around the player.

  • You should use family when you need to apply to all the sprites in the family, you can still reference the single object on its own for events where you only affect that one sprite.

  • For the movement in this game you can probably use most things, move to or tile movement or bullet. The grid seems important for placing items but not for enemy movement so what you have now should be fine.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Use a sub event with the same click event and say if animation frame = 1 or 2 then play audio easyy

  • For the offset images, open them in animations editor and look at the origin point of those traps, it is not in the centre. You can right click origin and quick assign to the middle.

    For movement anything would really work for this game even as a bullet behaviour could work unless there are specific gameplay elements to do with paths other than moving in a straight line? If it should stop when colliding with certain things you can do this with events.

    Tracking statuses, such as ?

    For the building spot, first change the condition to pick the Trap object, not system condition for hp. Then you can say 'Trap is overlapping BuildingSpot', this will pick the correct one.

  • yungbeathoven what did it not like about the images ?

  • You need to type it out like any variable, so Parameter0 will do. You already did this with the condition.

  • If you already added the parameter in the function then it appears like a variable so you do system compare variable and it should be in the list.

  • The behaviour they use to follow depends on the genre of game, I can't imagine what it looks like.

    To choose an NPC you could give each one a variable value like 1,2,3... and a global variable number which is the NPC that is following you.

    When you interact you set the global variable to the NPC number. Then for following, you can say if NPC.variable = global variable then follow, Else don't follow.

  • I mean that's not what I asked... but I think the issue is the global variable value has quotation marks around it. If you did what I asked in previous post probably you will find other actions are not working under the weapon=bat condition. Your var is equal to the string "Bat" not Bat

  • If it is working at the top level of the function then weapon is not Bat. Try some other action under 'weapon = bat' that is a general variable change and not related to the sprite, does that also not work ?

  • Some variables in my game change very often, sometimes once a second. And I would like this data to be saved. Will using Save & Load affect performance? How often can I use this save without sacrificing performance?

    I have tried this in my game and it does affect performance, I wouldn't save too often. You should design the game in a way where you can save in a more general way like at the start of a room rather than every time a variable changes.

  • > Save and load yes.

    Thanks for the answer. This makes me happy because Save & Load seems easier to me than Local Storage. So, when the value of one of the variables changes, I can save it using Save & Load?

    The save game will save the state of the game including all variables, like an old school save where I am and then load the game where I am, and this has always been fine for me. I may use local storage keys only for tracking for example you could determine if the user has saved before by saying 'does a local storage key exist'. Maybe local storage is used for saving and uploading data to servers though I've never tried it.