engberg's Recent Forum Activity

  • Oh.. so I guess it was the:

    for each sprite *ORDER BY SPRITE.X DESCENDING*

    • that I really needed - thanx a lot, you're a lifesaver..
  • This ought to be easy, but I've hit a wall..

    I just want each sprite to have different colors :-/

  • This keeps bugging me down - I cant wrap my head around it.. Perhaps I need to find a math-forum.. :-/

  • Dutoit>> Thanx for the suggestion. I'm not entirely sure, how that would help me.. (I'm saving it for a later project though

    My problem is still moving the player based on actual geolocation..

    Nice tips though..

  • I was hoping to use the layout.width but about 800x600.

    I think endnu in pixels would be better - so from lat lang to pixels..

    Thanks for answering!

  • I'm sorry but I have to bump this... No one able to help?

  • 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?
  • Try Construct 3

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

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

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

engberg's avatar

engberg

Member since 19 Jul, 2012

None one is following engberg yet!

Trophy Case

  • 12-Year Club
  • Email Verified

Progress

13/44
How to earn trophies