dop2000's Forum Posts

  • 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.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • "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.

  • You do not have permission to view this post

  • The "sling", "bronze" and "dalila" objects work perfectly fine, being Global just like "erin",

    Those objects are set as global, but erin is not.

  • Maybe two events are cancelling each other. Try one event with sub-events:

    On R pressed
    	Inventory Y<100 .....
    	Else ....
    
  • When you are switching to another layout, all objects from the current layout are destroyed. If the same objects exist on the new layout, their instances will be re-created, possibly with different UIDs.

    You can set an object as Global, it will be transferred to other layouts. But you should be careful, it's very easy to mess things up with global objects. For example, if you switch to "eren" layout and then back to "main", you may end up with two instances of Eren object. In this game I wouldn't recommend it.

  • You do not have permission to view this post

  • You do not have permission to view this post

  • Physics is not compatible with other behaviors like Wrap. You need to do wrapping with events. Save Object.Physics.VelocityX and VelocityY in a pair of variables. Then disable Physics, move the object to another side of the screen, re-enable Physics and restore the velocity from saved values.

  • I don't know.. I never used this template, but I'm sure it can be updated for your needs.

  • Can you post your project file? Or just an example project demonstrating the problem?

  • Do you think there's a way to select text after a certain character?

    Not sure I understand the question. Do you mean highlight text after some tag?