codah's Recent Forum Activity

  • codah

    couldn't that just be done, using a seperate selection sprite?

    Yep Sorry for the confusion.

  • but after I rotate it, I want it's height/width to be based on it's new angle.

    I'm probably misinterpreting this, but the bounding box automatically resizes based on rotation.. I've just had the reverse of your problem, where I want a visual 'selection' box that doesn't change size as the sprite is rotated, so I can't use the technique used by LittleStain.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Pin the sprites to the translucent sprite, then move the translucent sprite with drag drop. That should work fine.

  • I dont think that method has worked for some time

  • I'm using the Function object in the latest version. Can you post a capx?

  • ok then try this

  • I second the motion for Family to support being a container.

  • See update above ^^

  • Assuming it's a 2d array of text and that an "empty" slot will have an "X" in it.

    Array: W=4, H=3, D=1

    Array2: W=0, H=1, D=1

    For "" from 0 to array.height - 1

    Array.at(3, loopindex)) = "X" --> Array2:Push back loopindex on X axis

    Edit: fixed a basic error. see capx. sorry if I caused you more confusion. After re-reading the OP It seems you want to check for "X", not empty cell.

  • 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).

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