randomly's Forum Posts

  • R0J0hound you never let me down.

    Actually, when I posted this, I hoped that you would answer.

    Thanks so much!

  • Here I am, struggling with math that goes above my head.

    Some days ago, I saw an animation of a sphere with white dots attached to it, rotating.

    Example:

    I thought that looked pretty neat and thought that it must be possible to recreate this in C2 with some simple math.

    How wrong I was.

    I found this page explaining how it should work.

    At some point reading through the article, I figured I still need to learn a lot to be able to understand this.

    So I kinda gave up on understanding it.

    But I didn't want to give up on at least having a finished version of it in C2, maybe even learning something in the process.

    So I went ahead and more or less copied the code in the article ( + the source code provided in the article) into C2.

    And of course it didn't work.

    Now I know that to help me with this is quite the request, but maybe someone got some free time and motivation and is up for this challenge.

    This is what I've gotten so far by simply copy&paste and that doesn't work at all.

    Now, again, I am no math expert, by no means, I simply want to complete this to go to sleep happily.

    Any feedback is hugely appreciated!

  • Object.PickedCount = Object.Count[/code:hx6ncj5q]
    

    So this condition picks all the objects again?

    Doesn't it work so that the first condition eliminates all objects out of the PickedList that don't meet the condition and the next condition works with that new PickedList?

  • Try Construct 3

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

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

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