Mulletfingers999's Forum Posts

  • But the enemy sprite doesn't mirror, it constantly faces the same direction. (To make the sprite mirror on direction change was the reason I wanted to test if the sprite changes direction)

  • bump

  • Hi all,

    I'd like to know if there is a way I can check if an object with the platformer behavior changes its direction. Note that this object is not controlled by the arrow keys, it's an enemy, so detecting a direction change would not work by checking for arrow key presses.

    Thanks.

  • Alright, sorry about reporting a false bug, and thanks for the help.

  • So add the loop as a sub event under a trigger? Also the execute JavaScript was just used as a test event that could easily be seen.

  • Problem Description

    Repeat event does not loop the set number of times, it repeats infinitely.

    Attach a Capx

    https://mega.nz/#!3w1xgaKS!CYGDOjIy1eMn ... neRYiEKf88

    Description of Capx

    Repeat event is called to repeat 4 times and alert 'run' each time

    Steps to Reproduce Bug

    • Click run layout after opening capx

    Observed Result

    'run' is alerted infinitley.

    Expected Result

    'run' would alert four times.

    Affected Browsers

    • Chrome: YES
    • FireFox: YES
    • Internet Explorer: YES

    Operating System and Service Pack

    Windows 8.1 (no service pack), also tested on Windows 7, SP1 with same result.

    Construct 2 Version ID

    r221 (64-bit)

  • Thank you thegrind, that has fixed my problem.

  • Problem Description

    I cannot set a layer to be invisible using the event under System, 'Set Layer Visible'

    Attach a Capx

    https://mega.nz/#!KwFCVBbK!eG4-jSqftOCbPPdozpd0Rr9ROkDgI980zSJr1LxJ_d4

    Description of Capx

    There are two text objects, one per layer. Layer 1 is by default invisible. When the key V is pressed, if layer 1 is visible, it will become invisible, or if layer 1 is invisible, it will become visible.

    Steps to Reproduce Bug

    • Step 1: Preview Layout
    • Step 2: Press V
    • Step 3: Press V again

    Observed Result

    Upon pressing V the first time, Layer 1 becomes visible, as expected. Upon pressing again, nothing happens.

    Expected Result

    On the second key press of V, I would expect Layer 1 to become invisible.

    Affected Browsers

    • Chrome: YES
    • FireFox: YES
    • Internet Explorer: YES

    Operating System and Service Pack

    Windows 7, Service Pack 1

    Construct 2 Version ID

    r216 (64-bit)

    Note that on debugging this I found that Layer 1's property 'Visible' is set to false, upon pressing V it is set to 1, and after that it does not change.

  • Minor

    Thank you and Aphrodite very much! If I post the game, I'll mention you both in the credits =)

  • Minor

    I added the code from your capx into my project, but although it worked in your capx it didn't seem to change anything in mine. I have uploaded the capx at dl.dropboxusercontent.com/u/132034306/game.capx (Note: I cannot upload it directly, the size (3 MB) exceeds the max size (2 MB)).

    Best Regards,

    Liam O'Flynn

  • bump?

  • > Aphrodite

    > One more noob question: how would I achieve the 'sometimes make them stop in place and jump behavior' for multiple enemies?

    >

    I would use the timer behavior I think, to make it trigger a condition after a certain time, to do this.

    Thank you, This brings up two problems though:

    1) The timer is exactly the same for every one of my enemy's instances. I want them to each jump at random times.

    2) For some reason, my enemy's refuse to jump when I call Simulate platform pressing jump.

    Here is my code:

    Best regards,

    Liam O'Flynn

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Aphrodite

    One more noob question: how would I achieve the 'sometimes make them stop in place and jump behavior' for multiple enemies?

  • Minor

    Sorry, I didn't see the overlapping at offset part. Thank you very much.

  • Minor

    Thank you, but I was looking more for an AI based off of the enemies in bubble bobble.