dop2000's Forum Posts

  • Don't spawn it when the player moves. Put one instance of the crosshair sprite on the layout in the editor, or create it once on start of layout. When player moves - change the position of the existing crosshair instance.

  • I can open it in r178 if needed.

  • I read your post about 10 times and still don't quite understand the problem.

    You are using MoveTo behavior to make a "jump" in a top-down view game, right? And during the jump you are disabling 8direction? And it's not re-enabled until you release and press WASD keys again?

    Could you post your project file or a screenshot of events?

  • You need to show your code of share the project file.

  • You can move grass tiles to a separate tilemap and add PF cost to it.

  • I'm guessing Platform behavior knocks the character a fraction of a pixel back when it collides with the wall. Maybe with a low timescale it's enough to register a new collision on the next tick.

    Try checking if "Platform Has Wall on left/right" in the events where you simulate platform movement. So that if the character is already near a wall it will not move.

  • You can use BBcode - reduce font size and add offsety.

    Check out the documentation:

    construct.net/en/make-games/manuals/construct-3/plugin-reference/text

  • Agree, the search function is horrendously useless sometimes.. I might have 1000 matches for "Player" in my events, and 1000 matches for "Set position". But it's not possible to find "Player Set position".

    A small tip that I discovered: If you use the find window as a popup window, then you can click into the address bar of the find window, press ctrl+f, then you can use the browsers find feature to search through your find results.

    Wow, thank you, it's a clever workaround! Maybe Scirra should add "search in search results" feature.

    I also want to be able to filter or sort the search results by type - condition or action.

  • You mean listing all dictionary keys/values in a text object?

    You can do something like this

    Dictionary for each key
    .. Text Append Dictionary.CurrentKey & ": "
    .. Text Append Dictionary.CurrentValue & newline
    
  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • This simple script will base64 encode a text in string variable:

    runtime.globalVars.var=btoa(runtime.globalVars.var);
    

    Use atob() to decode.

    For a bit of extra protection you can replace some characters after encoding. For example, replace "A" with "#", "B" with "_" etc.

  • Maybe you could rotate the whole object 180 degrees, then it will grow from the right.

  • If there is no action to change this property, you can use a workaround - create two default instances of this sprite (on a separate layout if you wish). Configure them as templates, one with rotate=off, another with rotate=on. Then in runtime you can spawn an instance from a template.

    construct.net/en/make-games/manuals/construct-3/project-primitives/objects/templates

  • I understand that I can still spawn the item with the correct attributes as long as there is an object of the same type within the layout

    It doesn't need to be on the same layout. A common approach is to create a new unused layout like "Assets" or "ObjectRepository" and place default instances of objects there.

  • You can use a global object (an invisible sprite) with NoSave behavior. Create instance variables on that sprite to store the values which should not be affected by saving/loading.

  • If I create a sprite and use the touch or mouse object I can't seem to tween my camera. There is no option.

    What do you mean by "no option"? You should definitely be able to do that.

    Try something like this:

    Touch On Touched spriteButtonRight : Camera Tween X to (self.X+1920)
    

    Make sure that the sprite button is on a separate layer with (0,0) parallax, so it won't scroll with the rest of the layout.

    You might also want to add another condition to "On Touched" event checking that the Camera Tween is not currently running.