temple1997's Recent Forum Activity

  • It's happening around my game a lot it seems, as an example. I have a function where you can trade creature skins for money, the UI tells you how many skins you have remaining (all this works fine). When you have enough money/skins it will give you the item but also play a sound effect, if you don't have enough money/skins it won't give you anything and play an error sound.

    The problem is, if the player has just 1 creature skin the system reads they have at least 1 and trades it for money. At the same, it seems that because it reads how many creature skins I have it also reads that I have 0 because the purchase function is taking one off me when I do have one. This then too plays the error sound, so basically whenever I have one of something left and purchase something taking the count to 0 it plays both the purchase sound effect and error sound effect.

    Any help would be greatly appreciated.

  • SOLVED, solution in Edit at bottom post.

    Hey, can anybody help me? I've managed to use this plugin in my game, it works really well. But for what seems like no reason whatsoever, the shadow casters (the 'p' sprites from the example) aren't being moved to the object's corners. It's really weird and annoying, can anyone help?

    I just copied the events and actions across from the example and changed the objects to what they need to be. It finds the right object, finds generally the right corners but then just doesn't move the shadow casters ('p') to them. It's almost like the math within the actions is just a little off, but it works fine in the example and this is the same everything as that! If anyone can spot what is wrong, that would be super helpful.

    EDIT: I figured it out, it's because the sprite's only image point was in the Top-Left. This breaks it, it has to be in the centre unless you want to play around with the actions and fix it. To fix it is fairly simple, when it spawns the ShadowCasters ('p' from the example) it spawns them at the sprite's 0 image point. So just make another image point on your sprite and set it to centre, then where it says "Image Point:" in the settings for "Spawn another object" put the number of the new image point.

  • Thanks, CloveltOc. I tried a few things, played around and managed to figure out how to use Line of Sight and Pathfinding to randomise movements when not aggro'd and then attack the player when aggro'd anyhow.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • So I'm working on a top-down game where enemies randomly spawn so far out of the players view, but until the player gets so close the enemy AI will kind of wander around at random intervals. Like it will just be stood still for a second or two, then randomly turn around and walk in a random direction for a few seconds then stop and do the same in another random direction until the player comes into it's aggro range.

    Any suggestions would be incredibly helpful!

  • Thanks all, I think I figured it out using your help.

  • Let me explain, I'm working on a top-down game. In the HUD there are coordinates and a 'Location Name' text object. Just as a placeholder whilst I get all of the mechanics working I'm testing between three locations, the Spawn, the Safe House and the Wilderness. My character detects where he is by overlapping objects, meaning that I have invisible sprites that the character overlaps to tell him where he is.

    At the moment the only two specific locations are the Spawn and the Safe House, I'm trying to get the character to automatically locate empty areas as 'Wilderness' using the Else event. It works when there's only one specified location, but when I add any more it won't automatically set empty areas to Wilderness. It just doesn't detect anything, it get stuck on whatever location he was last on; but I can still walk between specified locations with it telling me what it is, just not the Wilderness.

    (The Blue is the Safe House, the Yellow is the Spawn and the empty grey is just nothing: where the character is supposed to figure out it's 'Wilderness'!)

    Any suggestions?

    EDIT: Fixed the event sheet image.

temple1997's avatar

temple1997

Member since 22 Feb, 2016

None one is following temple1997 yet!

Trophy Case

  • 8-Year Club
  • Email Verified

Progress

9/44
How to earn trophies