codah's Forum Posts

  • How would you do this? I don't mind how it's implemented as log as it looks good (although bonus points for using standard C2).

    Need (on user action):

    • a round (disc) sprite expands from 'zero' to say, 130px radius
    • must be visually smooth
    • must be quick (e.g. no more than 0.3 sec) to fully expand
    • must be same speed on any device (this is for mobile)

    Thanks!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Compare ButtonFamily.Variable

    ButtonFamily.Variable = "menu" -> Call Menu

    ButtonFamily.Variable="quit" -> Quit

    etc.

    ok I misunderstood the OP. Callbacks is a good solution but you can just do Function: Call ButtonFamily.Variable() as a shortcut.

  • codah I am not sure what you mean. can you explain?

    Did you search "global layers" in the manual? They will give you common UI across layouts. Then to get common events, you "include" event sheets that handle the UI on those layouts.

  • Look into global layers.

  • codah

    Just use Power management plugin in c2

    And export it

    Caution when create xdk project (create like this):

    C2 - Export project - Android (Crosswalk for Android) or PhoneGap (Android, iOS) - To some where for example D:\crosswalk\projectname

    Xdk - +New Project - Import an Existing HTML5 Project - Import Project from: D:\crosswalk\projectname, Name your Project: projectname

    For more information: https://dl.dropboxusercontent.com/u/186 ... index.html

    Thanks

    Thanks. As per my email, the problem was I had an existing project. After creating a new one and re-doing all the settings, icons, splashes, etc. I did get it to work. I was just worried I'd get a different key but it seems ok so far. Thanks.

  • function.call("myfunction")

  • Usual way is to create a function, pass it as a param the UID of a button object. In the function, pick the object from UID then do what you want.

  • If you only create xdk project with "Import an Existing HTML5 Project", then you don't need to manually add native plugins any more. (c2 will do all the native plugin install works for you automatically)

    How do I install to an existing project though? e.g. the power management plugin. Thanks.

  • No

  • Yes $3. Go to Completed add-ons forum, search powermanagement

  • Also, a family picks a random instance by default.

  • The 'is overlapping' is still running every tick (by necessity) , whereas an 'on collision' is triggered. What you should try to do is minimize what is done every tick, which is what my second capx tries to do. Always remember all non triggered events on your event sheet are run every tick.. and try to minimize them.

  • > You could do it as simply as this:

    > [attachment=0:1tsr0qmx][/attachment:1tsr0qmx]

    >

    >

    Thank you! This one worked exactly how I wanted.

    I appreciate everyone's help here!

    Based on Lordshiva1948 's hard work

    edit: but I would still investigate ways of not having this do work every tick..

  • Presumably this is the issue being discussed in a big way about 'jerkiness of movement' in another thread..

  • Just purchased it myself, going to try it out today hopefully