ArcadEd's Recent Forum Activity

  • 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

  • Try Construct 3

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

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

  • Sure, or just create an invisible sprite that it collides with to destroy it.

  • Cocoon is by far the easiest. You just use their cloud compiler.

    cocoonjsservice.ludei.com/cloud/login

    In order to publish to iOS you will need 1. A Mac running the latest XCode. 2. A developers Account from Apple ($99 a year). 3. An iOS device for testing.

  • Just make that one piece of lava have the bullet behavior, but not active on start. Put it on the layer below the lava it's going behind. Then when you are ready, activate the bullet and watch it go down and away. Then just have it destroy outside of layout so it's not lingering.

ArcadEd's avatar

ArcadEd

Early Adopter

Member since 3 Jul, 2012

Twitter
ArcadEd has 7 followers

Connect with ArcadEd

Trophy Case

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

22/44
How to earn trophies