Heptagono's Forum Posts

  • I will try to use another timer.

    The first timer will call the wave function and increase the radius while cleaning the canvas at each step.

    The second timer will increase the extra amount of distance to the radius.

    Could work?

  • Hey!

    Yes, more or less that's my aim. Although it seems that is not made with a canvas plugin, it is interesting to know how you have managed to make the waves appear continuously.

    By now, i'm calling a function with a timer. This function draws the arc with a variable "Radius". The timer also calls an increment to the radius amount. Therefore, each time that the timer is activated the radius variable increases and the arc drawing increases.

    But, now it's the problem: I have only a wave. If I make a loop inside the timer calling the wave function and making:

       Radio = Radio + Loopindex("Loop")

    It shoud make the radius increase each time the loop starts, but it doesn't work. I don't know if construct acts differenty as other languages or I have not found the proper way to describe that action. It's because of this that I'm asking openly to this forum.

    Any idea on how to describe this procedure?

  • Hello,

    This project aims to show a continuous flow of schematic radio waves like the ones shown at this image:

    dropbox.com/s/h9in8kqirh4tuxr/screen1.png

    <img src="https://www.dropbox.com/s/h9in8kqirh4tuxr/screen1.png" border="0" />

    As you can see there is only a pack of waves show at the image and I'm trying to draw a continuous flow of them. So here is the code:

    dropbox.com/s/9vryxd9lqlki5hj/screen2.png

    <img src="http://www.dropbox.com/s/9vryxd9lqlki5hj/screen2.png" border="0" />

    The variable Distancia is fixed. Perhaps a Loop can make it to sum 20 each time a new wave is created. But I haven't got the way to do this.

    ?Do you think this is well prepared to obatain a function able to create an infinite flow of waves?

    Here is the project:

    dropbox.com/s/xiwsagutes39bfe/smooth_radio_waves.capx]project.capx[/URL]

  • Nice! And using functions to simplify the code!

    I'm about to download the last version of canvas to check it out. What you have done seems a very good option. I'm trying it!

  • Hello!

    As you can see in the following images, i'm trying to create an animation of several schematic radio waves that disappear when reaching certain pixel on the canvas.

    <img src="http://fotos.subefotos.com/08a16f359516892217faa840542ed47bo.png" border="0" />

    The code employed is:

    <img src="http://fotos.subefotos.com/d6f1f2abb186206cf4169bae6df474aeo.png" border="0" />

    And the project itsef is:

    dropbox.com/s/6lzfmsgwc2t9ozm/schematic_waves.capx

    Anyone could help me in finding the way to improve the code and reach my objective of producing several waves at a pace of 0.2 seconds, and make them disappear when reaching the red box?

    Thanks in advance with your help with this daunting challenge!

  • I've uploaded a fairly self-explictive project showing my aim.

    As you can see when is executed, there is a wave advancing through the canva's white space.

    I'm trying to generate several waves so that I can simulate light in an schematic way.

    My objective too, is to make those waves to disappear on crushing with the red sprite. This is not easy for me, due to everything is happening inside this canvas.

    Have a look on the advances made on the project. I think it's quite interesting for making tutorials afterwards:

    dropbox.com/s/6lzfmsgwc2t9ozm/schematic_waves.capx

  • Remember it's a wave drawn into a canvas

  • Take a look on:

    dropbox.com/s/7lo0uk6bvxec216/radiowaves.capx

    Now it's starting to work. I have two new questions, nevertheless, for you:

    �How to implement in construct a loop that allows to create new waves always that the radius reach certain value?

    And

    �How it is posible that the variable values are soo high from the begginig? I have had to divide them by 100 to make them useful!

  • That's it, now it should be able to start automatically the animation at an appropiate rhytm so that there are several waves moving away from the border at the same pace, one each 0.25 seconds.

    dropbox.com/s/bfbwkrmayk0vv0f/timer.capx%20

  • This is awesome, Newt! I'm going to study the code and try to turn it into an automated behaviour, without need of mouse click.

    I'm sending you the results!

    Great!

  • Let's see...

  • Wow, newt!

    That was impressive. But actually what i'm trying to do is to draw these waves in a canvas because I have to change the degree values of the arc.

    It is possible to make the animation you did in a canvas?

    Check out this project:

    dropbox.com/s/v3ni0y0gnvlcmrp/waves.capx

    it fills the canvas, but no animation at all. Hummm...I've employed the timer wait 1 second before drawing the next arc, but it doesn't seems to work. I'm thrilled...

    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
  • How do construct 2 could create a wave animation similar to the next image?

    <img src="http://www.clker.com/cliparts/8/J/O/V/S/0/radio-waves-hpg-hi.png" border="0" />

    I've tried with this project:

    dropbox.com/s/v3ni0y0gnvlcmrp/waves.capx

    But it just draws it, not animate a flowing displacement of that waves.

    How to solve it?

  • Hi everybody!

    I'm trying to animate some geometrical waves that came from a central point.

    By now, I'm using a canvas and using the arc property to draw them. But now, I want to animate them and I find problems.

    dropbox.com/s/wus1osezcq67rb1/waves.png

    I think that the proper use of loops could be key to solve this but I'm not able to finish it by myself

    Anyone could give a hand?

    Thanks in advance!