ArcadEd's Recent Forum Activity

  • thehen

    I sent you a PM already, but thought your answer might be useful to others. Do you have any experience getting Microsoft Advertising to work in Windows Phone 8? I have no problems with my Windows 8 apps using the advertising sdk, but windows phone 8 seems to be a much different animal, and I can't find anything online.

    Thanks.

  • A few ways off the top of my head. 1. Use the distance expression 2. Create a sprite, like a circle, that goes around the object. Make it invisible and check for collision with it. Collisions still work on invisible objects.

  • It's totally worth it though :). My first game paid for my mac mini, ipod touch and dev account and then some :).

    Just gotta put in the work of figuring it all out, but it is worth it.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Well that's a bummer, both games I was looking at submitting run in landscape only. Hopefully there is a solution soon.

    Ashley, do you know of anyway to add a screen orientation to he tizen exporter?

  • Try just disabling the physics objects and see if that clears it up the laggyness.

    Are you wrapping it with CocoonJS, or just running from a browser on your phone?

  • distance(x1, y1, x2, y2) Calculate distance between to points

    It's pretty self explanatory. Say you have a player and an enemy

    distance(player.x, player.y, enemy.x, enemy.y) will return the distance from those 2 objects.

    So if you want the enemy to shoot when the player is closer than 200 pixels:

    If distance(player.x, player.y, enemy.x, enemy.y) < 200

       - Trigger enemy shooting event/function/group

  • Try the distance expression for starters.

    It's here in the manual.

    https://www.scirra.com/manual/126/system-expressions

  • Nice work, always more than one way to get the job done :).

  • Well I did get it working in a web simulator. However my game runs in landscape and changes the config.xml from auto-rotate to landscape doesn't seem to make a difference. Is there another place to mark that the app is landscape only?

  • Just create a global for levelsCleared and CompleteCheck, then all you need to do is edit the global variable if you add levels.

  • Well, you know how many levels there are right? Say there are 20. So when the variable = 20 you know all levels are complete.

    My approach is a bit long winded :). There is a lot of flexibility with arrays that is why I use them. Like I said, might be more complex than you need :).

  • I do something very similar with my apps for levels. I use the string of levelCleared for my webstorage. I create and pick apart that string with arrays.

    In other words, I have an array called arCleared, I populate that array with the values from the LevelCleared String.

    For Each X of arCleared

    ------Set Value at arCleared.curX to tokenat(LevelCleared, arCleared.CurX, ",")

    Now you have an array populated with your levelcleared data.

    For each X of arCleared

         If arCleared.at(arCleared.curx) = 1 then add 1 to a variable

    Then just compare that variable to the number you want for all levels to be complete.

    Might be a simpler way, but I like the versatility of arrays and having all my level info stored in one :).

ArcadEd's avatar

ArcadEd

Early Adopter

Member since 3 Jul, 2012

Twitter
ArcadEd has 7 followers

Connect with ArcadEd

Trophy Case

  • 14-Year Club
  • Jupiter Mission Supports Gordon's mission to Jupiter
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • Forum Hero Made 1,000 posts in the forums
  • x10
    Coach One of your tutorials has over 1,000 readers
  • x2
    Educator One of your tutorials has over 10,000 readers
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

23/44
How to earn trophies