codah's Recent Forum Activity

  • codah Hi Just to let you know, when building with XDK the distribution build for IOS make sure you select IOS TARGETING 5.1.1 otherwise apple will reject the game during the upload process with the apploader. I experienced this last night and when I selected 5.1.1 it was ok. Good Luck

    Thanks. BTW I'm the one who commented on your post in G+

    Also, I'm using Cordova export in C2 instead of PhoneGap as mentioned in your doc.

  • Simple...

    When I edit the code in the evnet sheet. It would be so nice if I could select the instances by name. Especially when you access instance variables..

    InstanceName.instancevariable

    Instead of now,

    ObjectName.InstanceVariable.

    If your instance is on the layout. It is declared as available in the game for your events. Sure it makes no sense if you spawn instances in events. But whey they are placed on the layout. It would be so nice If I could access them by name instead of IID (or UID)

    And yes it is traditional programming, in Visual Stucio / xCode etc. And not drag and drop in Construct 2.

    Fair enough. Somehow it becomes natural pretty quickly to do things the Construct way Usually when I have fixed objects in a layout they will have an ID value, and sometimes I do use that in a similar way. You could have a dummy Text instance variable with values like "top", "bottom", "this one" or whatever to identify them if you wanted . Or create a really simple Behaviour with a single property 'Instance name'.

  • Ok got it.

    Thanks for your help.

    It would be nice if you could see an the instances in your inspector and give them a name.

    What tends to confuse me is that the Name property is the property of the object, not the instance.

    It would be nice if you could name instances and have them available in your events sheets as if they were instance variables ( in ordinary programming )

    This is whats confusing me.

    Now you have to pick by uid, which you cant trust because they change, so you have to save these values in an array or dictionary, and it just makes the code hard to read I think.

    So if any from the scirra team is reading this... Instance names, would be nice.

    What name would you give to your instances? Remember instances can be dynamic, not just placed at design time. You can always add an instance variable yourself to identify it in the inspector (where you already can see the instances, numbered by IID). If you're still thinking as per traditional programming, you still need to do the 'paradigm shift'

    I do agree it should be 'Type' not 'Name'

  • try this, it now shows the values and types

  • That's right. Just try it and see

  • I've updated the capx, see if it's what you want.

    edit: note the 'add key' lines should be out of the loop Updated.

  • codah I just tried that in the example I posted and it doesn't work. Can you try with my example capx and see?

    I assumed you knew how to do the rest in your actual code Have a look at the post. You probably don't want to add instance variables to your Dict?onary like that.. what are you trying to achieve?

    edit: oh ok, try this

  • Just remove the quotes around bunny.type

  • oh well as long as you got it working!

  • -1 for me. There will be biases depending on the language(s) you've come from and nobody will agree on any of it. For instance I already don't like the format you have described. Where's my curly braces?

    *Just saying if Ashley could click a finger and have code support, I'd have nothing against it (as I could ignore it if I wished, as long as the GUI features didn't suffer) and I would probably even dip into it from time to time. It might be interesting to hit the 'view source' button occasionally But in the real world, I wouldn't want all that manpower diverted to it.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Can you either attach a capx or screenshot the actual error if there's more info in it? Events definitely cut/paste but if there are dependencies on local variables or something like that, then you have to be a bit tricky.

  • I assume you're aware of web fonts but didn't like that approach?

    edit: yea I just re-read the first post

codah's avatar

codah

Member since 30 May, 2014

Twitter
codah has 1 followers

Trophy Case

  • 10-Year Club
  • Email Verified

Progress

11/44
How to earn trophies