lamar's Forum Posts

  • You do not have permission to view this post

  • You do not have permission to view this post

  • You do not have permission to view this post

  • Thank you Lamar...

    guess I'll have to reinstall C2

    Before you go that far check your audio card has not crashed and maybe try it on a different computer.

  • It is so strange... why in my C2 when I go back from Layout2 to Layout1 the music stops (without restarting, can't hear it anymore)...

    Maybe something to do with the C2 version I just bought? Release 239 64bit thanks

    I just checked your CAPX again to make sure I wasn't hearing things (I'm old) and it seems to work fine.

    The music starts in layout one automatically. You left click on the man sprite and it goes to layout two and music still playing. You click on layout sprite fish and it goes back to layout one and restarts the music.

  • You do not have permission to view this post

  • lamar, thx 4 deleting that last post. Appreciated.

    As i said, i dont know how to stop postponed actions. But you can stop timed conditions.

    https://www.dropbox.com/s/h3f1i61ohw40r ... .capx?dl=0

    To complicated? Plz give me a better way, would really like to know.

    A postponed action never happens if that event or sub event is dependent on a trigger variable.

    I removed the post that showed how to do it because I want you to try and explain a better way?

  • > That scale feature is a bit wonky. I remember using the first few times trying to use decimal numbers and nothing fit. It only works with whole numbers or you get strange results

    >

    > That may be causing problems with paralaxes if they are not in multiples of 8 bits. You might resize them to a multiple of 8 and see if that works?

    >

    Yeah, I thought the switch to WebGL2.0 sorted out most of the non-Po2 problems?

    Eh- webgl and canvas still experimental and have issues with scale. If you scale everything by multiples of 8 at the same time you scale the window it works but you have to do some calculations.

  • Hi Lamar,

    Starting from the layout 1, when I go to Layout 2 and then return to Layout 1, the music stops.

    Isn't that happenning to you? thanks

    No it worked fine and clicked on sprite and music started and it went to layout 2 and music was still playing?

    The music did restart after going back to layout 1 because you have that in your on start of layout events.

    If you don't want it to restart remove that from your on start event and use a global variable to trigger it which will keep it looping if you want.

  • That scale feature is a bit wonky. I remember using the first few times trying to use decimal numbers and nothing fit. It only works with whole numbers or you get strange results

    That may be causing problems with paralaxes if they are not in multiples of 8 bits. You might resize them to a multiple of 8 and see if that works?

  • Try Construct 3

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

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

    Well that is your first step because I can't very well explain how to do a climbing action if you don't have a sprite with that animation.

    Here is a free sprite with a climbing animation you can download to practice with:

    http://opengameart.org/sites/default/files/NinjaAdventure.zip

    Get your sprites all set up in separate animations and then tomorrow PM me and I will help you set it up to climb.

  • When user touches sprite for second time I want to stop execution of that event[from first touch] and start over.

    Use a global variable as a trigger.

    Global variable Trigger = 0

    Main event:

    Do something:

    On Trigger =1

    Sub event:

    Wait so many seconds:

    On Trigger =0

    On Sprite touched: Set Trigger =1

    Trigger = 0

    On Sprite touched: Set Trigger =0

    Trigger = 1

    You can use global variables in sub events to trigger only certain actions just like you can for main events.

  • You do not have permission to view this post

  • cheers but ialready tried destroying sprite and creating again via click on the X sprite. even tried to allocate image by UID but seems apply to sprite globally. and whenever I recreate the sprite it comes back with the same image. thanks again for any help

    OK but I didn't tell you to destroy the sprite.

    I said use a pinned sprite as a trigger to change just the image in that sprite. You have to have the other image loaded for the change to work.

    Best of luck!

  • Multiply your paralax by 4 and they should fit?

    Scale by 3 is 480x4=1920

    Scale by 3 is 270x4=1080