randomly's Recent Forum Activity

  • Yes, that is possible.

    • First of all, get your Google Maps API key here, put that API key in the Google Map API plugin properties.
    • Add the Google Map plugin, set the settings to your liking.
    • In your event sheet, add an event GoogleMapAPI: On loaded. Under that, put the action GoogleMap: Set center [latitude],[longitude].

    Your basic map is set.

    Now, if you want to set a marker or info window as well, add this or this plugin, create at least one instance and use the action Put on map to place the marker.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Also note that the Y coordinate gets smaller (not bigger) when a Sprite goes up.

  • You actually don't even need an extra variable.

    Each Sprite has its own expression [Sprite].AnimationFrame which returns the current animation frame.

    It also has the expression [Sprite].AnimationFrameCount which can come in handy.

    Now when you want to scroll through the animation frames, you can do this with one action:

    • Set animation frame to: Sprite.AnimationFrame < Sprite.AnimationFrameCount-1 ? Sprite.AnimationFrame+1 : 0

    This will include the animation frame check condition in the actual action.

  • Magistross

    I believe that LunchboxGames wants the events that come after the compare condition to apply to all objects.

    So he wants an action to apply to all objects when a specific condition is met.

    The problem that he states is thought that a condition never picks the objects to which the condition doesn't apply, thus, all following actions usually don't work for all objects, but only those that meet the condition.

  • Or you could put the animation-frame condition and as a sub-condition, pick all objects of that kind (System condition -> Pick all) and then execute the action at that sub-condition.

  • So, if you export with NW.js, then you should get five folders, one of them being "osx64".

    The contents of that folder will be your export.

    Now I don't have any experience with MacOS, so I can't directly help you with MacOS.

    You might wanna have a look at this, especially at the "Publishing on OS X and Linux" section.

    npm install -g nwjs-macappstore-builder

    Also, this looks like a command line execution to me.

    I believe, on OS X, it's called terminal. You'll have to google the rest for yourself, as I said, I never used OS X.

  • Yay, finally someone providing a .capx when posting an issue!

    You need to reduce the collision polygon's size of the non-passable terrain sprites by 1 pixel on each edge.

    (from 16x16 to 14x14)

    That'll do the job.

    Apparently, C2 triggers an overlap when two objects collide, i.e. sharing the same coordinates on one edge.

  • Um, I'm not sure what you're looking for when stating "pkg"...

    Do you simply want to export using NW.js?

    You can do that when choosing the export method.

    Just choose NW.js and you will export to an executable, which one depends on your OS.

    NW.js supports Mac, Linux and Windows.

    Since you're on Mac, you should be fine.

  • Well, it worked for me when I created an example...

    Created a bit more detailed example, with almost exactly the same loop that I showed in the image:

    Download .capx

    The reason why it didn't work for you is probably because you put the function call in the wrong location.

    You need to execute the function each time when the amount of money changes.

  • Try to add the "Push out solid" behavior to the pinball.

  • I'm not gonna dig any further into this, this is your project after all, not mine. ;)

  • If you are just looking for cropping images, you can do that in the C2 image editor.

    Also, if you want to start with a smaller size than 250x250, just resize the blank starting sprite when creating a new Sprite before drawing.

randomly's avatar

randomly

Member since 26 Sep, 2016

Twitter
randomly has 1 followers

Trophy Case

  • 8-Year Club
  • Email Verified

Progress

9/44
How to earn trophies