codah's Forum Posts

  • Hey man. I have read the entire post. Don't have time for an in depth reply as I'm mobile. Have you done a search on "oop" as this has been raised quite a few times (including by me). You're right about c2 walking that fine line. I'm an oo guy from way back don't get me wrong. I think just having a simple "data" object (POD) would be great, to aggregate values and combine those objects into compound objects. Arrays of these would be great too. I think I'm agreeing with the spirit of your post, but keeping it simple. I don't think that would be difficult to implement, but who knows. I don't like the accessing of fields by string name though.

  • It's perfect! Thanks

    Not really a trick, just more concise logic.. Less code=easier reading/maintenance. Remember 'every tick' there is not really every tick.. Just when the conditions are true.

    Oh yeah as you saw I changed it to portrait for easier testing for me.

  • I think you should use something other than the Tap gesture if you want to detect fast taps. Remember it has to detect double-taps as well, so if you tap fast it will detect that. It seems to work fine if the taps are slow.

    See the capx. I changed it to Touch:On any touch start. I also changed a bit of your logic (structure only).

  • How about the third party plugin csv2array (or something like that, I haven't used it)?

  • Ok now I have another question.

    I set some objects to spawn in random positions on the screen, but there is a problem.

    Sometimes some of them spawn on top of each other (because they spawn at a random location,and sometimes that random location is on top of another object)

    Can I make them spawn in random positions, but prevent them from spawning on top of other objects?

    You need to choose random x,y values then check if they coincide with existing object positions, in which case, try again. In other words, write some code to do it.

  • Yeah it's pretty handy in the right circumstances.

    Btw I'll be interested to see your simulation

  • Using a container there is no need to associate UIDs whatsoever. Picking any object in a container also picks all other objects in the same one.

    True, which is why I said, if he needs to. There should probably be no need.

  • Create the Router object as a Container, with an Array object in it. The array object will be spawned for you when you spawn the Router object. If you need to you can associate the array and router objects somehow, like with router UID or something.

  • You're welcome. Please take the time to read through System conditions in the manual, and the event system.

  • Your capx does not work, here is the error I get

    It works. I'm using beta 181.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • one way of doing it

  • Specifically, you have two 'boost0' objects on your layout. When they get spawned during layout creation, the other contained objects will also get spawned, i.e. a Beacon0 and Boost0 for each Stone0. You could move them off screen (in C2 actions) if you wanted to.

  • In my example you would use a For each. For collision, the picking is done for you.

  • Maybe under the "Crosswalk Intel XDK experiences" thread? Also have a look on the Intel XDK forums and search for version numbers threads.

  • make sure you're doing the settings in the "android crosswalk" and not "android" tab.