engberg's Forum Posts

  • Hi

    I'm having a hard time getting my head around the math on this one..

    So I found this rule of thumb that 1 degree lattitude equals 111111 meters and that 1 degree longitude equals 111111*cos(lat). This might not be completely accurate, but let it be ok for now..

    I want to be able to move within a 40m x 40m square in real life and start in the center.. So my Layout.Width somehow has to translate into the 40m..

    I can use

    Geolocation.Latitude

    Geolocation.Longitude

    • to find my center, but when I move, how do I calculate how my sprite has to move?
  • I just wanna say, that I'd really like to see this become reality, even though this is an old thread..

  • tokencount("Mg+++", "+") returns 4

    tokencount("Mg++", "+") returns 3

    tokencount("Mg+", "+") returns 2

    tokencount("Mg", "+") returns 1

    tokencount("M++", "+") returns 3

    Alright, so it seems safe to say, that for my purpose that would work.. Thank you for taking time to answer :-)

    Regards

       Engberg

  • Hi

    I have a string - say "Mg++", and I wand to find out how many "+"'s there is in it..

    How would you go about that?

    I suspect the use of tokencount, but can't really come up with a solution..

    Regards

       Engberg

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hi, and sorry to hijack your thread :-)

    Trying to do something facebook here as well.

    Can't make your (lanceal) example work..

    I added my own app-id and path.

    I think I get logged in right, but the info doesn't get back into construct.

    Perhaps you could take a quick look at qrun.dk.

  • In r100 and firefox it only counts down to 19.. :-/

  • ..so how is that plugin coming along?

  • Nimtrix Your capx really helped me - thanx..

    Kyatric - I think I might use JSon in a later project - good stuff!

  • Bugger!

    This is excactly what I need, but I don't get R0J0hound 's solution..

    I just wan't to fill a 1D array with 10 names..

  • So..

    I don't get what the blank sub-event does in the example from Kyatric

    It works, but I don't get why the blank events are necessary..

    I'm funny that way :-)

  • Alright.. Thanx.

    Bonus info: I actually just bought the full version in the belief that I would get the r99-version that way round, before LaDestitute gave the tip :-)

  • LaDestitute>> Now that was a handy trick! :-)

    So I see that I have to create animations with a name for each flower.. Bummer for lots of flowers..

    But I guess I'll try this route..

  • Kyatric>> I'd just love to take a loot at your .capx, but is says that your version is newer than mine r99 and r95 - so I can't open it..

    I've put my version up here

    (and the limit-comment was merely a provocation <img src="smileys/smiley2.gif" border="0" align="middle"> to get help - and it worked!)

  • Uhh.. nice idea.. Thanx a lot

    I guess that might be how card-games are made too.. :-)

    Anyway, that seems to work if I only have the one FlowerObject on my layout.. But if I have two copies of it, then it counts as both right AND wrong, as the animation number in one instance is correct and in the other is false..

  • Hi

    I'm trying to make a simple quiz game.

    It writes the name of a flower, and you have to click the right picture between 30 different ones.

    I can make it work, but each flower-picture gets a really long click-event, which I have to copy and change variables to all 30 pictures.

    My code is ugly, so I just ask - what would be the simplest way to do this?

    (I put picture UIDs and names in 2 arrays, donno if that helps).

    I've made a few other games, but have I already met Construct 2's limit?