KSLR's Forum Posts

  • 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.

  • 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!!!

  • I read a few other posts on this subject and none of them work for me. I have an action on keyboard C pressed take a snapshot. When the snap is taken load it into that sprite. How do I get the URL that is needed here?

    Thank you very much in advance.

  • That solution does work for what I need. It took me a bit to get my head around it but it is successful. Thank you Tarek2

    For some reason using the operator < doesn't work but having a = does. I think that was part of my mistake.

    Thanks again!!

  • I have a object that collides with a tile map and then erased tiles maps it collides with. I want to also want to have something happen when certain tiles are erased. for example when tile 0 and tile 1 are erased add 1 to points.

    Here is what my code looks like:

    + leg_Head: On collision with Tilemap_Edible

    ----+ System: For "GroundTileX" from Tilemap_Edible.PositionToTileX(leg_Head.BBoxLeft) to Tilemap_Edible.PositionToTileX(leg_Head.BBoxRight)

    ----+ System: For "GroundTileY" from Tilemap_Edible.PositionToTileY(leg_Head.BBoxTop) to Tilemap_Edible.PositionToTileY(leg_Head.BBoxBottom)

    -----> Tilemap_Edible: Erase tile (LoopIndex("GroundTileX"), LoopIndex("GroundTileY"))

    --------+ Tilemap_Edible: Tile (LoopIndex("GroundTileX"), LoopIndex("GroundTileY")) ≤ 2

    ---------> leg_Head: Shake ScrollTo with magnitude 20 for 0.4 seconds (Reducing magnitude)

    ---------> System: Set MovesLeft to 10

    Thanks in advance for any help :)

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • thanks oosyrag and prominent!

    This gives me insight on how I can address this situation. Your animation prominent look right up my alley. Thank you.

  • Bump. I am still struggling with this type of camera. I believe I need the windows current position.

    Thank you.

  • I have been having trouble making this type of camera. I settled for a while with a lerping cam and it’s super jarring when you change directions and doesn’t move fast enough when the character moves fast.

    I really want something like this video:

    https://youtu.be/TCIMPYM0AQg

    https://media.giphy.com/media/xqTHyT5TmwrdK/giphy

    Does anyone have experience with this type of cam? I like the idea of wiggle room when switching directions. <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile">

    Thank you <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile">