Wolph's Forum Posts

  • So, that would only be a problem if someone was creating the same Object A upon "On Destroy" of Object A.

    ie, "On destroyed" (Object A) - Create Object A.

    Where as I am saying, "On Destroyed" ( Object A) - Create Object B.

    Object B does not have an "On Destroy" - "Create" condition/action, there for it would not be stuck in an infinite loop. More over why does the event sheet scan through everything on Restart Layout? Would that not fix it, if it were to say, do not run the entire event sheet one last tick rather just run the "Restart" function?

    Thank you for your patience, trying to wrap my head around this, anyways thank you again, and for the workaround.

  • On a side note, we fixed this problem by using a Function "DestroyGarbage" before running "Restart Layout", which destroys all our objects. The problem looks to be that the event sheet runs one last time through the code which it should most likely just stop everything and restart.

    That or a Destroy all needs to be implemented BEFORE the Restart Layout fires, not after. Anyways thank you for your hard work Ashley, and Construct! Thank you.

  • Problem Description

    ____ "On Destroyed" - Create Object, runs on "Restart Layout" because it destroys the object upon "Restarting Layout", causing "On Destroyed" to create the object in the new Layout, or restarted Layout. ____

    Attach a Capx

    ____ https://www.dropbox.com/s/jok0oh6zts45fgc/RestartLayout_Duplicatation_Bug.capx?dl=0____

    Description of Capx

    ____ Reproduces the bug "On destroyed", Spawn new object after restarting the layout. Obj Count shows that the new object is being created after restarting. ____

    Steps to Reproduce Bug

    • Click the "Restart" text.

    Observed Result

    ____ Restarting the layout, creates a new object from the "On destroyed", "Spawn Object" condition/action after restarting. ____

    Expected Result

    ____ "On Destroyed" - Create Object does not run upon restart layout. ____

    Affected Browsers

    • Chrome: (YES/NO)
    • FireFox: (YES/NO)
    • Internet Explorer: (YES/NO)

    Operating System and Service Pack

    ____ Win 7 Pro ____

    Construct 2 Version ID

    ____ 200 ____

  • Anonnymitet, Thank you, but this is not the intended effect, the cursor still leaves the area just not the sprite, the only real fix is to make only full screen games and forget about browser/windowed games or use this plugin or create a plugin using the Pointer Lock API.

    briggybros, This is exactly the intended functionality, thank you! Although I was hoping it could be done without a plugin, this will have to do.

    Ashley, So you cant lock the mouse to the center while the game action takes place, whats to happen when people want to play the game without clicking on stuff out side the game content? This is quite a huge oversight for a game engine, especially one designed to work with browsers. It is a critical flaw and should be a top priority in implementing this functionality without plugins. Especially now that the Pointer Lock API is out, hitting ESC releases the mouse, so its not a security issue. Thank you for your hard work, I look forward to seeing if this can be implemented smoothly into "mouse" without plugins.

    Intended functionality > Example FPS Quake game using Pointer Lock API : http://media.tojicode.com/q3bsp/

    Thank you.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • The mouse is leaving the game area, even when exported to desktop, or preview. I must be able to lock the mouse to the game area, so that it does not leave the game area. I'm sure this is much simpler then I'm making it.

    Thank you!

  • Excellent! Thank you I love this community, your solution is even more elegant! Bravo!

  • Have you ever wanted animated tiled backgrounds for your game? After searching, I've found that this feature simply does not exist within Construct 2. So If anyone's looking for a simple solution, I have come up with a very simple solution to this problem.

    By using two Tiled Backgrounds (WaterFall_0, WaterFall_1), and placing one on top of the other, you can toggle the visibility of the one on top, to create an animated effect.

  • Thank you for the replies, I was referencing this post https://www.scirra.com/forum/destroy-single-instance-of-bullet-projectile_t70613.

    So looks like using Families is the correct procedure in Construct 2? Id rather like a way to check for all solids other than using Families, or at least know if there is another way.

    Thank you!

  • Hello there, this seems like a simple problem, yet I have searched and cannot find an answer referring to Construct 2, only Classic.

    Was this removed in Construct 2 (Attributes/Solids from the "On collision with object")? If not how do I use it, and if it was removed, must I put all my solids in a family and check the family instead?

    Thank you!

  • I just exported to an exe using Node-Webkit, and I should have tested this first, but it works as intended. Just while previewing, the controller controls the host on peer and host. So if that helps, its just the preview that is not working correctly. Tested in Chrome, Firefox, both bugged.

  • Hello, I have followed the examples, and tutorials about multiplayer. I have it working correctly, and have searched the forums for this issue but I cant seem to find any new relevant info. So the controls for the keyboard work fine, both players move independently on peer and host, except when I use the gamepad (xbox 360 controller), the host moves fine, but the peer also controls the host with the controller! The peer does not move himself with the gamepad, but the keyboard controls still move the peer on peer and the host on host independently.

    So how can that be? Is the gamepad not working for multiplayer yet? As only the gamepad is not working correctly. Thank you.

  • Brilliant! Thank you for the swift reply!

    I'm glad it was as easy as a simple Variable, you guys are the greatest!

  • I would like to create a coin based off whether or not choose() has chosen the '1'. I would like to keep it simple if that's possible.

    How can I find out whether or not the '1' was chosen?

    To elaborate I only want the coin to spawn above the enemies head if the gold was added. Any ideas? I am stumped! Thank you!

    <img src="http://i.imgur.com/uUsCryL.jpg" border="0" />