Nimtrix's Recent Forum Activity

  • Do you mean something like this?

    ScrollToPlatform.capx (r108.2)

  • Yeah, just click on the animation name ("Default" if it only has one animation). Then in the properties window to the left, set the "Loop" property to "Yes" like OddConfection said.

  • keepee:

    Yeah, that's what I did first, but I couldn't get it to work yesterday. I obviously moved the "Set text" action with it, so the results were wrong. But yeah, it should work like you said.

  • : It should work as long as the "Every tick" event is at the bottom of the event sheet (after any events that use the variables). I hadn't considered that before you pointed it out though. <img src="smileys/smiley17.gif" border="0" align="middle">

    ToggleLeftRight.capx (r107)

    An alternative/work-around could be something like this:

    ToggleLeftRightAlt.capx (r107)

  • Hmm, yeah I see now you will probably run into the same problem with that. How about this:

    +Right arrow is down 
    +Left arrow is not down
    [ul]
    	[li]> Set Right to true[/li]
    [/ul]
    +Left arrow is down
    +Right arrow is not down
    [ul]
    	[li]> Set Left to true[/li]
    [/ul]
    +Every Tick
    [ul]
    	[li]> Set Left to false[/li]
    	[li]> Set Right to false
  • You do not have permission to view this post

  • Well, if both keys are down, the conditions of the first two event will be met, so both of them will run setting "Left" and "Right" to who knows what.

    You could try this instead, but I don't know if it's really necessary since the "Key is down" conditions are pretty much "Left"/"Right" booleans themselves, you should be able to do it without using extra booleans:

    +Right arrow is down 
    +Left arrow is not down
    [ul]
    	[li]> Set Right to true[/li]
    	[li]> Set Left to false[/li]
    [/ul]
    +Left arrow is down
    +Right arrow is not down
    [ul]
    	[li]> Set Left to true[/li]
    	[li]> Set Right to false
  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You can use the "Pick nearest" condition to save the closest object's UID in a variable, then check if the UID of the object you click is the same as the one stored in the variable.

    Example:

    PickClosest.capx (r107)

  • Well, maybe if you had zoomed in just a small part of the screen (like a minimap or something), you might want to ignore that scaling/zooming for some events. There are probably some other uses as well, it's nice to be able to do both anyways.

  • X

    Y

    Return the position of the mouse cursor in game co-ordinates. This is (0, 0) at the top left of the layout. It changes to reflect scrolling and scaling. However, if an individual layer has been scrolled, scaled or rotated, these expressions do not take that in to account - for that case, use the layer versions below.

    X("layer")

    Y("layer")

    Return the position of the mouse cursor in game co-ordinates, with scrolling, scaling and rotation taken in to account for the given layer. The layer can be identified either by a string of its name or its zero-based index (e.g. Mouse.X(0)).

    It's like this by design and should work if you specify the layer like it says in the manual.

  • I don't see any gaps like that. There have been some issues with gaps in tiled backgrounds that were fixed by updating the graphics driver, maybe if you try that?

  • Hmm, I don't see any gaps in Chrome or Firefox so I'm not sure what you mean. Could you get a screenshot of it?

Nimtrix's avatar

Nimtrix

Member since 30 Dec, 2011

None one is following Nimtrix yet!

Trophy Case

  • 12-Year Club
  • Jupiter Mission Supports Gordon's mission to Jupiter
  • RTFM Read the fabulous manual
  • Email Verified

Progress

15/44
How to earn trophies