Isaske's Recent Forum Activity

  • I believe you're running into another version of the same problem I describe here:

    https://www.construct.net/en/forum/construct-3/scripting-51/declaring-objects-script-160208

    To put it simply, each script block has its own namespace, so the 'MyStreaming' variable isn't exactly destroyed - it simply cannot be accessed outside the block where it was created.

    The solution is to declare your stream in a way that's globally accessible. I don't know much javascript, so the way I've started to do it is by creating things by the window object, which is probably a dumb way to go about it, but works for me.

    What you'd do in your example is instead of declaring your stream using 'var myStreaming =', declare it like 'window.myStreaming =' - the window object will be accessible from your other block, and thus 'window.myStreaming.stop()' should hopefully work. Good luck!

    This works!!! the problem was the code window.MyStream.stop() for some reason does not work, but if it works window.MyStream.pause() without any problem! now I don't know which of the 2 ways to use :D!

  • In the end I did it using remote URL! Before I had already tried without success, but now when removing the codec in the Type parameter it worked magically!

  • I believe you're running into another version of the same problem I describe here:

    https://www.construct.net/en/forum/construct-3/scripting-51/declaring-objects-script-160208

    To put it simply, each script block has its own namespace, so the 'MyStreaming' variable isn't exactly destroyed - it simply cannot be accessed outside the block where it was created.

    The solution is to declare your stream in a way that's globally accessible. I don't know much javascript, so the way I've started to do it is by creating things by the window object, which is probably a dumb way to go about it, but works for me.

    What you'd do in your example is instead of declaring your stream using 'var myStreaming =', declare it like 'window.myStreaming =' - the window object will be accessible from your other block, and thus 'window.myStreaming.stop()' should hopefully work. Good luck!

    Thanks, it is true that windows works to keep variables from one block to another, but there is something that my code is missing, an id to identify the audio that has been played, since I can not even stop the audio within the same block.

    I have to investigate how to identify that audio, although I do not know javascript I will not give up!

  • I want to create an online radio app.

    I managed to play an external audio, but I can't stop it!

    apparently the mySteaming variable is destroyed after the script is finished. I'm obviously doing something wrong, can someone help me?

    Link Cp3

    https://https://drive.google.com/file/d/13IOtenRjFZtM3jW4Wnnls5p_vIeZFoQq/view?usp=sharing

    Tagged:

  • Excellent AllanR Now when the fps come down there are no big separations! just a few small movements that are not notorious, Thank you!

    I discovered that these jumps are the fault of the deltaTime, the head uses the bullet behavior and this uses the DT to move, and makes small jumps so as not to make the worm slow, and this is affected in the array, which captures the jumps too!

    if I eliminate bullet behavior and move my head with

    EveryTick -

    "movet a angle" = head.angle

    "distance" = 5

    then the jumps are eliminated!

    but it makes the worm slow when there are 40.50 fps

    Not all can be perfect!

    capx

    drive.google.com/open

    I also have another .. just add the behavior bullet in the body and each of them sige what lies ahead, does not pass exactly the same place as the head, that's why the trail of the hole appears in the last sprite of the body then it gives a feeling that if he does

    capx

    drive.google.com/open

    I don't know which one to choose XD

  • and dop2000 thanks for answering

    AllanR thanks for optimizing my array!

    what you have done with the worm looks good, I think I can work with that thanks!

    although I would have liked to do it with maths like option 1, but I do not understand well how to do it

  • hello I hope the experts can help me

    I have this game of worms and I have problems with its tail, the tail is updated with an array, Everytick

    but when there are screen frame jumps, the queue of the gusando separates doing this ..

    this is easy to see when you change the window and come back

    I have created a red sprite "Everytick" to be noticed also when it fails

    the question is .. how could you solve this?

    I leave the link to try it

    wormgametest0315.netlify.com

    and capx link

    drive.google.com/open

    Thank you!

    Tagged:

  • You do not have permission to view this post

  • You do not have permission to view this post

  • very good, it makes the creation of the plugins much easier, the good work continues!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hi Isaske,I'm also searching how to save a .txt file on android and can't find any solution.

    Did you figure out how to do it?

    I did not find any way

  • Hi! when they deliver the C3 subscription?

Isaske's avatar

Isaske

Member since 17 Mar, 2013

Twitter
Isaske has 63 followers

Trophy Case

  • 11-Year Club
  • x11
    Popular Game One of your games has over 1,000 players
  • x3
    Famous Game One of your games has over 10,000 players
  • Viral Game One of your games has over 100,000 players
  • RTFM Read the fabulous manual
  • x3
    Great Comment One of your comments gets 3 upvotes
  • Email Verified

Progress

17/44
How to earn trophies