KSLR's Recent Forum Activity

  • Is it possible to edit a variable from inside a function?

    I haven't had any luck testing this out. I just had a simple function that needs to change and external variable. I am guessing this isn't in the scope of a function.

    Thank you very much in advance.

  • I made a general function for every time a button is pressed I want the buttons to wiggle. It seems to wiggle all buttons of the button family. Is there a more elegant way of doing this? Also using a tween is great but its unresponsive once you press the button. Is there a way to reset a tween or maybe use a different technique for this? I am tying to make bouncy buttons like you see in Clash Royale.

    Tagged:

  • So I have a functioning fade in and fade out using the fade behavior. I just have one issue now with a very jarring flicker at the beginning of the fades. My goal is to have a function that can fade from black to visible and from visible to black. Here is the code I currently have in place. I am unsure how to get a smooth transition.

    Thanks in advance.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • AllanR thanks for your reply. I did another test using the fade behaviour but I recall not have access to on fade complete in the scope of the function. I was initially trying to copy what they are doing in the kiwi story game. I will test fade again and the other methods described with my new knowledge.

    Again, thanks

  • Thanks everyone for the great replies. I think I will add a do while type loop in my fade function so that I can run the fade and turn off inputs until the fade is complete.

    Thanks again Ashleydop2000brunopalermo

  • I am curious if someone can help clarify how functions work.

    I have a function here where the opacity is decreased with a lerp. It does not work. It seems like it only runs once when called.

    Of course if I move out the condition string condition "Foo" outside of the function it works fine. But would it not be best practice to encapsulate all the conditions inside of the function it pertains too?

    Thank you in advance.

  • I just bought C3 so I will be using that from now on. but I will try your suggestion dop2000 I did mean screenshot of the game.

    thank you everyone.

  • You do not have permission to view this post

  • Thanks for the reply oosyrag I only have on recording ready. Maybe it's because I am on C2

    Maverick1912 I tried to replace with user media and it does't seem to work. I will look more into this. I am using c2 as well. I thought I was posting in how do I c2 sorry for that and thanks again for the help.

  • Thank you maverick for your quick response. Is there a reference in the manual about this? Where would I find find this info if not from the community? Thanks again!!!

KSLR's avatar

KSLR

Member since 29 Jan, 2012

None one is following KSLR yet!

Connect with KSLR

Trophy Case

  • 12-Year Club
  • Forum Contributor Made 100 posts in the forums
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

16/44
How to earn trophies