AndreasR's Recent Forum Activity

  • Without more details, it's hard to be specific, but in the worst case you can put all objects in two Families. Then you can do distance(FamilyA.X,FamilyA.Y, FamilyB.X,FamilyB.Y)

    Now I got it! Thank you!

  • Families also help solve this kind of problem.

    Thanks for that hint. How do I do that? Do I just use the family.X/Y then?

    Thanks!

  • You can use the iid sprite(iid).x if you know the id's beforehand.

    Ah didn't know that this is possible. I'll try that. Thank you!

  • Hi,

    I want to get the distance between to sprites, but they are the same objects (just copies). I know that I can use two diffrent objects to avoid that, but in my game I have more than 2 copies, and I don't want to create a new sprite for each of that.

    The code for example:

    distance(Sprite.X,Sprite.Y, Sprite.X,Sprite.Y)[/code:12cmdlgh]
    
    Is there a way to pick the second instance of the object? The code above returns 0, due to the fact that it doesn't calcualate the distance between the two instances but of its own.
    
    Thanks for your help in advance!
    
    Regards
    Andy
  • Please help me i want just have the possibillity of export to Cordova !!!!!!

    For that I guess you need at least the Personal License of Construct 2

  • >

    > > AndreasR do you mean that with Intel XDK, app generated can't exceed 20 MB ?

    > >

    >

    > No, I meant that the file size of the app will be about 20 mb. Surely if you add a lot of big images or sounds the file gets bigger.

    > But the minimum size is about 20 mb.

    >

    Thanks ! do you know if there's a maximum size to publish to iOs ?

    Sadly no, I never have made any games for iOS yet.

    Regards Andy

  • AndreasR do you mean that with Intel XDK, app generated can't exceed 20 MB ?

    No, I meant that the file size of the app will be about 20 mb. Surely if you add a lot of big images or sounds the file gets bigger.

    But the minimum size is about 20 mb.

  • Hi Andy,

    Thanks for that , I will give them both a try and see what happens.

    Cheers John

    Hi John,

    You're welcome

    Regards

    Andy

  • Hi All, <img src="{SMILIES_PATH}/icon_e_biggrin.gif" alt=":D" title="Very Happy">

    I have taken the plunge and decided to purchase Construct 2. I experimented with a number of different game development packages, but construct 2 came top for ease of use, price and functionality. I even looked at BuildBox, its good, but no way on earth is it worth the amount they are asking. Considering the Cry Engine is free! The Unreal Engine is free! And these are pretty impressive development environments. Sorry I'm rambling on now. <img src="{SMILIES_PATH}/icon_rolleyes.gif" alt=":roll:" title="Rolling Eyes">

    Any way my first little attempt at a game is underway in construct 2, but I have a mountain to climb to learn all the functionalities available and ways of creating a game. I watched a youtube video (

    Subscribe to Construct videos now

    ) explaining how to export the game for testing on the Android using XDK. My issue is that the XDK still has a fault reported back in dec 2014, iOS Landscape screen orientation not working, even though preferences have been set in construct2 and the XDK. I tried it last night and the problem occurred on my iphone4s device.

    I'm sure their must be a fix or work around by now Jan 2016. Or should I be using a different publishing tool, any advice on this really would help.

    If any one can advise me and point me in the right direction I would appreciate that very much.

    John the Noob <img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing">

    Hi,

    welcome to the C2 community. There are two good ways to get your app on a iOS.

    1) Cordova & Intel XDK

    https://www.scirra.com/tutorials/1353/h ... lkphonegap

    • Supports Phonegap / Cordova Plugins
    • Supports all Browser Features (Buttons, Loader, Inputfield)
    • Filesize about 20+ MB

    2) Cordova & CocoonIO

    https://forums.cocoon.io/t/construct2-h ... ocoonio/45

    • Awesome performance
    • Supports Phonegap / Cordova Plugins
    • Supports less Browser Features (no Buttons, no Loader, no Inputfields)
    • Filesize 7+ MB

    You must decide on your own what you want to use at the end.

    Regards

    Andy

  • Im currently developing for android and ios, that happens also on mobile?

    The localstorage is unique for each game, at least on android.

    On a website the share the same LocalStorage, so it's recommended to use a prefix.

    But to be absolutely sure, just always use a prefix like the game name "GAME_highscore"

    Regards

    Andy

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Update!

    With the latest update we have added support for CocoonIO! All buyers get notifed when Scirra has approved the update!

    You can join our newsletter below in order to get notifed about sales and updates!

  • I figured it out. The problem was with the line you mentioned but not for the reason you mentioned. I had it so it only set a highscore when the highscore was already less than 0. since I already had a highscore in my debugger local storage it worked fine, but when I transferred over to a new environment the highscore was set to zero so it wouldn't set a new one. when I ran your capx it set my local highscore to a positive number and my games highscore stopped working in the debugger. Thanks for the help!

    Great news You're welcome!

    Regards

    Andy

AndreasR's avatar

AndreasR

Member since 21 Feb, 2013

Twitter
AndreasR has 6 followers

Connect with AndreasR

Trophy Case

  • 11-Year Club
  • x11
    Popular Game One of your games has over 1,000 players
  • x17
    Coach One of your tutorials has over 1,000 readers
  • x2
    Educator One of your tutorials has over 10,000 readers
  • Email Verified

Progress

15/44
How to earn trophies