codah's Forum Posts

  • You could do it as simply as this:

    [attachment=1:h5x6ztnj][/attachment:h5x6ztnj]

    but this would be updating the score every tick. Add some tracking variables and you get this. Maybe not much better

    [attachment=0:h5x6ztnj][/attachment:h5x6ztnj]

    Capx

    [attachment=2:h5x6ztnj][/attachment:h5x6ztnj]

  • volkiller730 , codah

    Do you know how to optimize an game for tablets?

    http://developer.android.com/distribute/essentials/quality/tablets.html

  • Power management plugin by cranberrygame

  • Hi Mike Lee of Intel can you please stop nagging me with your survey? Thanks.

    FINAL REMINDER: Intel® Software Development Products Division Usage Survey 2014

    Sorry to bother you again, but we still need your response.

    Again, my name is ...

    -----------------

    REMINDER: Intel® Software Development Products Division Usage Survey 2014

    Hello again, my name is ...

    -----------------

    Development Products Division Usage Survey 2014

  • Just bought the powermanagement plugin for my Android Crosswalk app. Looking forward to trying it out.

  • Just put an Else between them. Even better (IMO) is to make the variable an instance variable. What happens when you have 2 clickers?

  • Could you give us a sample of your code, or some idea of the kind of the logic you're trying to do? You might want to use a finite state machine to keep track of states. Or as Ashley has mentioned, you could do something event/trigger based to more closely mimic what C2 does, maybe publisher-subscriber. But, just like you don't want to write prodecural (classical) code in C2, you don't want to think in terms of C2 when programming classical languages.

  • I find some good stuff here. Just search "arrows" or whatever. You can filter for Free stuff.

    https://www.iconfinder.com/

  • I have this issue. I'm using scrollto for a simple transition between screens (one layout). No collisions or animations, all static stuff and it's jerky on my Nexus 5, horrible on my Nexus 7, both with Lollipop. Smooth on PC of course but mine is an Android Crosswalk app. It looks so unprofessional I think I'm going to remove it.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Use a collision event, not overlapping.

    And for less code, put your wall objects in a family.

  • Global variables maintain their value. Local variables don't, by default, so you have to make them 'static'. Hope that's what you're after. You can make functions recursive but I wouldn't unless you know what you're doing

  • Have just 1 on tap gesture, then have the checking for frame as a subevent, and use an Else between them

  • And then you have to know/remember to 'save as' project again. Things are only obvious once you know them.

  • You can have a very large layout, which is much bigger than the viewable screen (viewport, or 'window size' in project properties) and generate your planets at random x,y locations at startup. Only onscreen objects (in the viewport) are rendered so its feasible. Or you could have multiple 'zones/levels' (layouts) to break it up, and switch between them during the game. Is that what you're after? You can store your names (or other level data) in JSON text files and load them dynamically. I have not done such large layouts so I'm sure others will chime in.

  • I think you're complicating things. I also come from an OO background. C2 does have some OO concepts. Consider the following:

    Object Types:

    An Object Type is kind of like a class, with class variables (called instance variables in C2).

    Setting 'instance variable' values on an Object Type (via the properties in the editor or programatically) sets them for new, spawned Object instances.

    You cannot have an Object Type 'inherit' another.

    Objects:

    An Object is an 'instance' of an Object Type.

    Setting 'instance variable' values on an Object instance (via the properties in the editor or programatically) sets them for just that Object instance, overriding the Object Type.

    Families:

    A Family is kind of like an abstract class, with class variables (called Family instance variables).

    Object Types can 'inherit' from these by placing the Object Type into a Family (or more than one Family, for 'multiple inheritance').

    You cannot have an Family 'inherit' another (cannot place a Family in a Family). So 'inheritance' is only one level deep.

    Setting 'Family instance variable' values on an Object (via the properties in the editor or programatically) sets them for just that Object instance, overriding the Family.

    Note: Effects and Behaviours work similarly to Instance variables on the above.

    Apologies for any mistakes in the above, which I'm sure I'll be corrected on