N0M4D's Forum Posts

  • I have a sprite and want it to zoom in and out with a key press. Keyboard Z for zoom out, Keyboard X to zoom in. I want the behavior to be the longer I hold the key down, the further it goes, but then stop at a certain size. I think Tween and a Global variable is needed for this but I could use some help please. <3

  • N0M4D

    the problem is that both blocks of code will run.

    in the first block you check if Enter has been pressed, then set paused to true.

    the next block checks if Enter has been pressed AND if paused is true (which it will be because you just set it to true) and then it will un-pause your game.

    You should use ELSE to make sure both blocks don't run.

    > 	EVENT: On Press Enter
    		> is paused - set paused false, set timescale 1
    		> ELSE - set paused true, set timescale 0
    

    then I would expect a global variable would work fine...

    Yeah that worked like a charm! Thanks for your guys help!

  • you should init your bool to FALSE (unchecked).

    and add another condition to your Pause

    (right-click and set bool cond to inverted)

    > EVENT: On Press Enter AND (NOT) is paused
    ACTION: set paused to true
    ACTION: timescale 0
    

    to unpause

    > EVENT: On Press Enter AND is paused
    ACTION: set paused to false
    ACTION: timescale 1
    

    don't use Toggle.. it's just confusing.

    I got you, but why doesn't a number global variable work here? (0,1)

  • I have to set my initial boolean value to true, and I tried it with a numerical global variable but it didn't work, Why does this work but the others didn't? I just want to better understand the process,

  • * edit

    zeropad(number, digits)

    https://www.construct.net/en/make-games/manuals/construct-3/system-reference/system-expressions

    Didn't see that thanks again friend.

  • So I have my text score set to 00000000 if I defeat enemy add 100 to the score global variable and set text to global variable value. So I want the over text to be like 00000100. How can I do this? Thanks again!

  • I'd use a tween behavior. Have the trigger condition disable the camera pin from the player, then tween (two positions) to the target object's X and Y values.

    Works great thanks so much!

  • Thanks so much! I'll give that a shot and let you know!

  • Best way to smoothly move (scroll to) camera from object to object? I don't want it to "snap" from object to object. Thanks!

  • That will work but...

    I suggest a timer that starts when they press the up arrow. If they don't get the cheat code done in say 2 seconds, it resets the cheat code.

    I added groups and a timer. Thanks for the reply!

  • Easier than I thought! This is how I did it, yes I know that I need to add sub-events to reset the text if buttons are pressed in wrong order. Hope this helps others!

  • What is the best way to handle this? I remember old codes like the infamous Konami code: Up, Up, Down, Down....etc lol. Would anyone mind showing me how to do a basic string like this that just displays "cheater" or something on the screen? Thanks!

    Tagged:

  • Before everyone looks at me like I am an idiot lol, I guess what I was asking is if this has multi-user editing like Google Docs, but at this point I am assuming the answer is no, which is fine as we're using an older method to check each others versions. Just think it would be a cool feature.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • My buddy and I decided to get serious with our game development and upgraded to a 2 seat business license. I added him to the license, is there a way that we could work on a project simultaneously? Thanks!

  • You do not have permission to view this post