NoobGameDev.exe's Forum Posts

  • add the condition: System -> for each blue square

    Ah, so simple. I was mistakenly trying to use "trigger once" but I was supposed to use what you mentioned.

    Thanks for pointing me in the right direction!

    <img src="smileys/smiley4.gif" border="0" align="middle" />

  • Hello,

    I'm trying to make it so that when the player goes over the blue square he "collects" it. What should happen is that the blue square gets destroyed and 1 is added to the amount of blue squares that the player has. This works fine if there is only ONE blue square to pick up, but if there are multiple blue squares on top of each other they all get destroyed and only 1 gets added to the amount that the player has.

    To test, you can download CAPX below and run it. To spawn some blue squares press 3. Spawn a lot and they will fall on top of each other, try to collect them and only 1 will be collected but all will be destroyed.

    Example CAPX

    Any help is appreciated.

    Enzan

  • Have you looked into the QR Decober plugin? Probably a good place to start.

    http://www.scirra.com/forum/plugin-qr-code-decoder_topic57006_page1.html

    Good luck!

  • Thanks for the advice LittleStain. I'll look into containers.

    For now, it works as intended so I am happy <img src="smileys/smiley1.gif" border="0" align="middle" />

  • <img src="smileys/smiley20.gif" border="0" align="middle" /> Got It

    I knew it was something simple. Just had to move two where the mirroring would occur, which of course is after the enemy hits the edge like I stated earlier <img src="smileys/smiley36.gif" border="0" align="middle" />

    <img src="http://img706.imageshack.us/img706/9169/f5db.png" border="0" />

  • Hi Everyone,

    Youtube Video Showing Problem:

    Subscribe to Construct videos now

    CAPX file if needed for review: CAPX

    I'm having a problem with mirroring an enemy image. In the attached CAPX you will find that I am using the box technique on both the Player and the Enemies. Right now I am focusing on enemies and simple movement.

    When the enemies hit the edge mark, they start to go the opposite way and the image is mirrored. The enemy always goes the opposite way without any issue but the mirroring part seems to break sometimes. In the youtube video you'll see a highlighted/glowing (was using debugger) enemy that seems to not mirror itself until it reaches the middle of the level, but it is supposed to mirror itself immediately after changing directions. Only one is doing that though, the rest are mirroring properly.

    <img src="http://img823.imageshack.us/img823/3585/af27.png" border="0">

    I'm honestly stumped on this one because the issue does not happen all the time. To recreate the issue, open the CAPX and preview the game. Create a couple of enemies (press the space bar) and eventually one will break. If one does not break, reload the preview and try again. Try to create the third enemy maybe 5 seconds after the first two.

    One thing I did notice, it kind of looks like the broken ones end up mirroring when a specific other enemy hits the edge instead, is it possible that the instances got crossed somehow? It is weird though because the other enemy still mirrors properly itself, and when I check the debugger the IDs are all correct.

    Any help on figuring this out is appreciated. I'm sure it is something simple but I'm just not seeing it, especially since it only messes up sometimes instead of all the time.

    Enzan

  • I recommend buying from the Scirra website, even though Steam might be having a sale, just to avoid headaches later when certain things are not working strictly because you are using the steam version.

    Correction. The Steam version is up to day. It seems one of the files I tried to open was from the BETA which gave me the warning that my version was too old. ;D

    Are you able to use the Beta version if you wanted to? I'm not sure how that would work with Steam.

  • Maybe disable collisions on the enemy AFTER the enemy has been hit by the shot.. That is what I would try.

    <font size="1">I'm new though...</font>

  • Capx link is dead. Can you reupload :D ?

    I'm also wondering if the capx can be reuploaded, please?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I prefer using Chrome but I have experienced the same issue that I sometimes have to reload the preview because certain things did not load properly. Sometimes sprites are just offset or the graphics look blurred. It seems to be completely random though and the only way to reproduce is to continuously preview until it loads incorrectly. I think it is a browser issue.

  • Thanks for the help JJList. The way you handled pinning the collider works great.

    Sadly I have not been able to get the second issue resolved (sometimes being able to land on the head of the enemy). I have tried even making the collider ridiculously large and sometimes the Player still falls through the collider and lands on the head of the enemy. You can re-create this issue on the previous capx by going to the top platform and falling onto the enemies head (don't jump).

    I'll keep trying to figure it out but so far it has got me very stumped.

    edit: I'm thinking of just going off of your capx and building from there.. this issue has got me beat and I don't understand how it is an issue on my capx but not on yours <img src="smileys/smiley18.gif" border="0" align="middle" /> . I'm mostly just trying to learn right now so this really bugs me.

  • I believe you just rename the backup to [FileNameHere].capx, but I haven't actually tried it yet. I recommend making a copy of the backup (backup the backup...) and then try renaming the backup.

  • There is PathFinding in Construct 2 but it works a bit differently from what you mentioned. It can still be used to get what you want though, instead of drawing the line where it goes you can draw the borders where it cannot go... hope that makes sense.

    There is also an example capx provided in Construct 2 for free, look for Pathfinding example when you open up Construct 2 and click new project.

  • I think that is correct actually. While you are dragging it you are basically holding on to it and if the layout is moving the sprite you are dragging won't move unless you drag it elsewhere.

    Sorry if I misunderstood the issue. I would check the CAPX but the CAPX link seems to be directing to a directory of your personal computer. It needs to be uploaded to something like DropBox so that we may get access to it.

    edit: I just noticed the word DropBox on the link, so it looks like you did upload it to dropbox but we still need the DropBox URL Link to get access to it. You can get the link easily if you login to the dropbox website and click on the chain/link icon on the right of the file.

  • Hi!

    Sorry if this topic Repost. I want to know how to make Enemy Health Status in top of him. Thanks!

    I think the thread below is what you are looking for:

    http://www.scirra.com/forum/One-health-bar-for-each-enemy_topic53196_page2.html

    JayJay on that thread also provided a capx example which may be useful.

    Good luck!