dop2000's Forum Posts

  • If changing the type is not possible, you can replace the textbox with another one, which shows the same password but in clear text. Basically make the first textbox invisible and the second one visible, and set focus to it.

  • You do not have permission to view this post

  • There is "Deduplicate images" option when you export your game.

  • First, you posted in the wrong sub-forum. Secondly, seems like you shared the wrong project :)

    Anyway, there are multiple issues with your events. Event #4 on your screenshot will run on every tick, creating lots and lots of objects. Also, I believe when you press C, both events 1 and 10 will be triggered one after another. The first will set InDialog to true, and that's why the second will trigger also, cancelling the popup.

    You need to change your code like this:

    On C pressed 
    Player is overlapping Counter
    
    	(Sub-events)
    	Is InDialog : Set InDialog to false, destroy popup etc.
    	
    	Else : Set InDialog to true, create popup menu etc.
    
  • Do you need keys with different rectangle length? You can create several frames or animations in the sprite.

    Or use a separate sprite for the circle and attach it to the rectangle with physics joints.

  • Or Date.Now+259200000

    (259200000 is the number of milliseconds in 3 days)

  • BTW, it would be nice to have a "Stop function" action in C3, similar to "Stop loop".

  • In Physics world you need to move object with Physics actions - apply force, set velocity etc.

    Try this:

  • You should post your project file, it's really difficult to understand your problem.

    Also, Physics is not compatible with other movement behaviors. Don't use Physics with Pin or Bullet behaviors in one object.

  • If there are only 3 instance variables, you can use a ternary operator. For example:

    Set text to (DialogueState=1 ? NPC.Dialogue1 : DialogueState=2 ? NPC.Dialogue2 : NPC.Dialogue3)

    Otherwise use a dictionary as oosyrag suggested - add the dictionary to the same container with NPC, each NPC will have its own copy of it.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Why do you want to stop animations for off-screen objects? If you think this will improve performance, it probably won't. These events executed on every tick will likely have the same performance impact (or even worse), as playing animations.

  • "Every tick" is kind of useless condition, since all events are run on every tick anyway. But you can use it to make the code easier to read.

    "Pick all" condition is definitely not required here. By default all instances are picked already.

    The problem was likely with the loop. You should avoid nesting triggered conditions ("On Fall", "On Landed") under other events, especially inside loops.

  • I believe Ashley explained that objects with the same parthfinding settings (cell size, border etc.) share one obstacle map. So even if you set different obstacles for two objects, only one obstacle map will be generated. That's why both objects choose the same path in your video.

  • Hey, cool gun!

    1. You don't need to tell C3 to connect bluetooth gamepad, but you might want to check if it's connected using "Has gamepads" condition, and display a message to the player if there are no connected gamepads. Or revert to a different controls method.

    2. If there is no manual for this gamepad, all you can do is try different buttons. You can make a small app just to test gun buttons. Something like this:

    On Button A pressed : Text set text to "Button A"
    On Left Shoulder Trigger pressed : Text set text to "Left Shoulder Trigger"
    etc.
    
  • Try removing events 1, 2, 3 - they are definitely not needed here.

    Events 4, 5, 6, 8 should not be nested under other events.