ikke2902's Recent Forum Activity

  • You are welcome

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Locale variable "CurrentBiggestDistance"

    Locale variable "MostFarUID"

    OnDeath

    ------for each spawnpoint

    -------------for each enemy

    ------------------------distance(spawnpoint.x, spawnpoint.y, enemy.x, enemy.y) > CurrentBiggestDistance : Set CurrentBiggestDistance to distance(spawnpoint.x, spawnpoint.y, enemy.x, enemy.y) AND set MostFarUID to enemy.UID

    -------Pick spawnpoint UID= MostFarUID : Spawn Player

    -------[No condition] : Set CurrentBiggestDistance to 0 AND Set MostFarUID to -1

    gl!

  • Allow me to resurect this topic...

    Does the princess still wander around?

    Is the treasure still there?

    I'd like to have these badges...

  • I can only make a suggestion to eliminate the huge pile of global variable.

    Add an array. Each box of the array can represent as a systemslot.

    For example Array.at(0,0) can be seen as systemslotA

    Array.at(0,1) as systemslotB etc.

    You can store the Objects in it when the conditions are met.

    Though, you will still have the long list with different actions

    Array.at(0,0)= Object A - Do This

    Array.at(0,1)= Object B - Do This

    (...)

    gl!

  • matrixreal You should try the more elegant solution suggested by paulscot

    Here is my capx using his idea

    https://dl.dropboxusercontent.com/u/152 ... angle.capx

    gl!

  • I had the same problem haha.

    You are welcome SilentScope!

  • You can also use AngleAt on touch release - this gives you the angle of the swipe.

    I didn't know that condition and it's great. Thanks paul

  • The ads (and test ads) only show up in exported apk afaik.

    Ads won't work on pc.

    Could there be a hidden space at the end of your BannerID in C2?

    Maybe you can test with a different condition for showing ads, like on pressed R instead of on banner received. Try this in test mode first though.

  • DId a test ads show up during test mode?

    I just tested with my game. Ads does show up even if you have't export your game to the playstore.

    Your steps seems to be fine.

    Though, I recommend you to update your intelXDK to the latest version, they have added Admob plugin in the third party plugin section. You just need to tick it on and you don't have to get plugin from web. The end results might be the same, but who knows...

  • I guess you need to store the coordinations on Tap and on release.

    Then compare them both to determin whether it's going left/right/up/down.

    On tap: Store Touch.X in locale variable InitialX

    Store Touch.Y in locale variable InitialY

    On release: Store Touch.X in locale variable ReleaseX

    Store Touch.Y in locale variable ReleaseY

    If Initial.X<Release.X: go to right

    etc.

    You might want to compare the difference of initial X and release X with the Y difference to prevent from going up while you are clearly going to the right. It is hard to touch and release on the same Y coordinate, vise versa with X.

    gl!

  • Here I also recomend you the beginner tutorial...

    https://www.scirra.com/tutorials/37/beg ... t-2/page-1

    Eventhough the tutorial teach you to make a different game then you have in mind, it covers the tools you need.

    There is one important thing which isn't in that tutorial. You will need the system action "Go to layout".

    gl!

  • I highly recommend you to do the bigeinner tutorial if you haven't yet.

    It introduce you to use instance variable and global variable, which should do the trick

    https://www.scirra.com/tutorials/37/beg ... t-2/page-1

    gl!

ikke2902's avatar

ikke2902

Member since 8 Feb, 2012

None one is following ikke2902 yet!

Trophy Case

  • 12-Year Club
  • Email Verified

Progress

13/44
How to earn trophies