codah's Forum Posts

  • Simpler than 2 events? <img src="{SMILIES_PATH}/icon_e_geek.gif" alt=":geek:" title="Geek">

    Any way to make all the shadow sprites behave the same way with these events?

    My demos do, see above... First has 2 rooms, second has 4. Event sheet unchanged.

    If you don't have 176b

    https://www.scirra.com/construct2/releases/r176

  • 176 is the latest beta release..

  • Give this a go - I hope it's the kind of thing you're after. I removed the fade behavior from sprite4 and added a FadeIn and a FadeOut boolean. The booleans are set according to whether or not the player is overlapping the shade sprite, another event then takes care of the fade in or fade out effect, using dt to ensure a smooth fade effect....

    The right-hand room never fades out?

  • My picture is a photo of this guy's

    dog

    , whom takes a lot of photos of his

    dog

    with different objects placed on him. Don't know the guy or the

    dog

    , but I have a lot of photos of this

    dog

    . Awesome

    dog

    tho.

    I just had to!

  • Drag and drop doesn't honour the solid behaviour..

    From the link:

    [quote:2whyygz6]It affects the following behaviors:

    8 Direction, which is blocked by Solids

    Bullet, which can optionally bounce off Solids

    Car, which bounces off Solids

    Line-of-sight, which by default has line-of-sight obstructed by Solids

    Platform, which can land on Solids. Platform cannot jump on to solids from underneath - for this, use the Jump-thru behavior.

    Pathfinding, which by default uses solids as path obstacles.

  • Put Solid behaviour on your solid objects, and also, e.g. Bullet or 8-direction behaviour (which use the Solid behaviour).

    https://www.scirra.com/manual/104/solid

    hint: if you had typed 'solid' in the Manual search page, you would have got the above link <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile">

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Just rotate the ship 90 degrees clockwise in the sprite editor so that 'visual' right is angle 0 (right). Then make sure you have 'set angle:yes' for bullet, etc.

  • This is not as easy as it seems. I finally got something going with LiteTween. It's a 3rd party plugin but you can do some amazing things with it, if you can work it out! I'm still not 100% sure why this works and lots of other variations I tried didn't..

    LiteTween is a behaviour so put it in the behaviours folder not plugins.

    [attachment=1:70003ead][/attachment:70003ead]

    [attachment=2:70003ead][/attachment:70003ead]

    For this I changed platform behaviour to 8-direction to navigate the 4 rooms. Just to demonstrate proof of concept.

    [attachment=0:70003ead][/attachment:70003ead]

  • With this you can add any number of buttons with no more code

    Edit: I didn't really explain how to use the capx very well. I've also simplified it--the family wasn't necessary.

    First

    1. Copy the btntxt object to your project

    2. Copy the 1 event to your layout (no changes required)

    Then repeat these steps for each button you need:

    1. Drag a 'btntxt' onto your layout

    2. Set its text in the "my_text" instance variable (e.g. "Bonus Chest: ")

    3. Set its 'on' text in the "on_text" instance variable (e.g. "Normal")

    4. Set its 'off' text in the "off_text" instance variable (e.g. "Easy")

  • Please upload the capx. In the meantime.. use one touch event, and an else to check the variable is 0 or 1.

  • (you need to insert picked items into family and work with that family = same object in two places)

    Hi can you explain what you mean by this? I've just started experimenting with Nickname but there doesn't seem to be a drawback using a family this way.

  • Here. By the way there is a third party "toggle switch" behaviour which might be worth looking into. I haven't used it.

  • Works ok for me. What do you mean by "the tutorial won't work"? It could be anything. Maybe even your spelling of "RunFoward". Better if you post the capx.

  • Yes there's a tutorial that shows this. Search in the tutorial section. Good luck.

  • Might be able to add the condition to only spawn if System: sprite.Count < 25