Functions in Radio waves animation

0 favourites
  • 5 posts
From the Asset Store
Waves SFX Sea & Ocean contains 170 seamless loops.
  • 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]

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I know this probably isn't what you want but just thought I'd show you:

    radio-waves

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

  • My example just creates sprites every x seconds and scales and fades them.

    I tried getting the canvas to do what you want, but I'm not very familiar with the canvas object.

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

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)