R0J0hound's Forum Posts

  • Here's one way to do it:

    https://dl.dropboxusercontent.com/u/542 ... _fall.capx

    To satisfy the requirements of the first two images you need to only let the blocks fall if all of them are destructible. The logic looks like this:

    global number cnt=0
    
    +---------------------------------------+
    | player overlaps block at offset (0,2) | set cnt to block.pickedCount
    +---------------------------------------+
        +-----------------------------------+
        | block is destructable             | let block fall
        | cnt = block.pickedCount           |
        +-----------------------------------+[/code:21xe7lsc]
    
    The block delay bit can be done with by queuing the blocks to fall up and letting them fall one by one.
  • Form controls like the button take the keyboard input when clicked on. You can either use the "set unfocused" action of the button, or use sprites instead that you can click on.

  • I'd imagine it would be faster to change an object's visibility, rather than creating/destroying it.

    In both cases the object wouldn't be drawn, so rendering performance would be the same.

    If the object isn't destroyed it's still available for interaction though.

    Both have their uses, and it shouldn't be an issue of which is faster, instead just what makes sense in that situation. Usually I make invisible stuff that I'll either make visible again or just use for interaction. Whereas I destroy what is no longer needed.

  • It looks like a bug which would be good to report.

    You can probably work around it by using :

    float(Dictionary.Get("attention")) instead of Dictionary.Get("attention"). I'm guessing the value of "attention" isn't a number, or at least isn't right away.

  • The first capx attached here should help:

    It highlights all the tiles that overlap the tiles, but you could then take that and clear those tiles.

  • —

    I can't see your images, so I can't say what the issue is.

    Here are some examples of some working implementations if it helps.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Savvy001

    Does this not work? It works for me.

    https://dl.dropboxusercontent.com/u/542 ... _test.capx

  • Prominent

    Not sure. All prevent rotation really does is give the object super high rotational inertia.

  • What do you want to do to the scrollbar?

    You can do all this with css:

    http://www.w3schools.com/cssref/default.asp

    Also looking here, there appears to be a way to change how they look, but I don't think this can be do from inside C2:

    http://webdesign.tutsplus.com/articles/ ... esign-9430

    I think you'll need to modify the css in the exported html file.

  • No need, the link works.

  • Savvy001

    Nothing should prevent you from doing so, as long as something is picked to paste.

  • Prominent

    Here's an idea using collision layers. The idea is the elevator is two different objects on different layers so they don't interact. So for example the orange blocks can affect the elevators motion, whereas the blue one thinks it has high mass.

    https://dl.dropboxusercontent.com/u/542 ... ator2.capx

    Outside of that idea more of chipmunk's collision handlers would need to be exposed. Then maybe tricks like setting the mass high temporarily before the collision is resolved and then setting it back afterwards could be used.

  • Prominent

    Hmm, I think I had to work around that infinity mass issue elsewhere. So scratch that for now.

    Maybe we could do something in post collide. You can get the impulse of the collision with an expression, so maybe you could apply an opposite impulse to negate the force.

  • Prominent

    You could try giving the elevator a mass of infinity and just set it's velocity.

    Alternatively you could use joints to emulate how an actual elevator is built. Maybe a groove joint with distance joint that you adjust the length of.

  • Physics treats immovable objects as not moving so I imagine it thinks any objects in contact with it can sleep.

    One idea would be to not make the obsticle immovable. Instead attach it with a revolute joint to another immovable object. Then set the angular velocity instead of using the rotate behavior.