R0J0hound's Recent Forum Activity

  • It's working the same as before with me, and my public folder is still there.

  • It can be calculated easily with a bit of math if the objects are boxes or circles. Also with a bit of logic you can use collision polygons.

    http://dl.dropbox.com/u/5426011/examples12/sprite_in_sprite.capx

    Making it work with rotated objects would complicate things a bit. It's doable but I would opt for objects with no rotation.

    Finally it is possible to do a per-pixel check with the canvas plugin but I imagine it would be dog slow.

  • When you place a tower does it get placed where you clicked or does it drop down to the ground level?

    You could use an invisible sprite as a detector. Make it as wide as the tower and use some high number for the height. Then position it to the mouse and check it for overlaps with other towers.

  • Can you run Construct as an Administrator? I don't have 7 but I know Vista has a right click option for it.

  • Try going to "Preferences" and pressing the "Reset Dialogs" button.

  • It crashes here.

    I think the issue is you can only create 255 physics objects per frame. So if you want to create more than 255 you need to do it over several frames.

  • tulamide

    That's correct, my mistake. I really should have tested it before I posted it to avoid stuff like that.

  • A youtube search has many such tutorials.

  • I can get it to crash like that if I set them all to the same position. I can get a lot more objects onscreen if they aren't all overlapping. Perhaps it crashes when a physics object is colliding with more than 255 physics objects?

  • You could use a 1-dimensional array.

    Say you want a 4-dimensional array 5x6x3x2:

    + System: Start of layout

    -> Array: Set size to 5*6*3*2 x 1 x 1

    + Function: On function "At"

    -> Function: Set return value to 0

    ---+ System: Function.Param(1) is between 0 and 4

    ---+ System: Function.Param(2) is between 0 and 5

    ---+ System: Function.Param(3) is between 0 and 2

    ---+ System: Function.Param(4) is between 0 and 1

    ----> Function: Set return value to Array(Function.Param(1) + Function.Param(2)*5 + Function.Param(3)*5*6 + Function.Param(4)*5*6*3)

    + Function: On function "Set"

    + System: Function.Param(1) is between 0 and 4

    + System: Function.Param(2) is between 0 and 5

    + System: Function.Param(3) is between 0 and 2

    + System: Function.Param(4) is between 0 and 1

    -> Array: Set index (Function.Param(1) + Function.Param(2)*5 + Function.Param(3)*5*6 + Function.Param(4)*5*6*3

    , 0, 0) to Function.Param(5)

    EDIT:

    This is a zero-based array, if you want a 1-based it will require a bit of tweaking.

  • In the topic Pode says he's using the "Random Array plugin".

    Scroll down in the topic to this post for a working example:

    http://www.scirra.com/forum/problem-15-game_topic46274_post290016.html#290016

    It is for C2 but it is still useful for implementing in CC, because all the features it has are present in CC.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Also there is a layout property "unbounded scrolling" that allows scrolling outside the layout.

R0J0hound's avatar

R0J0hound

Member since 15 Jun, 2009

Twitter
R0J0hound has 155 followers

Connect with R0J0hound