0 Favourites

# Functions in Radio waves animation

• 5 posts
• Hello,

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

<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:

<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:

• I know this probably isn't what you want but just thought I'd show you:

radio-waves

• ## Buy Construct 3

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

Construct 3 users don't see these ads
• 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?

• 5 posts
Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)
 Similar Topics Posts Views Last Post 0 Favourites Q3D V-2.4 [3D Physics + Skeletal Animation UPDATE] by 3 Jun, 2014 1 ... 128 129 130 1,941 263,340 27 May, 2018 0 Favourites [PLUGIN] Radio & Checkbox by 14 Dec, 2011 46 14,507 21 Jan, 2017 0 Favourites How do I even make proper Animations? by 21 Feb, 2013 65 14,833 18 Jun, 2013