Enhance the Sine Behavior

Discussion and feedback on Construct 2

Post » Thu Apr 24, 2014 11:46 am

Hi all, using the Sine behavior is really handy for making objects opaque, move or rotate smoothly. Two features I think are missing are setting the reference line, and setting/resetting the moment in the cycle.

Right now, the reference line is in the middle - and this causes a problem. In my game menu, I show all my levels that will be available, but only one is available now. What I want to happen is when someone clicks on a level not available, I want to show them that it's under construction. I want to use the Sine behavior to move the level icon/image down that reveals a "under construction" image. But using the Sine behavior as is causes the image to also move up above its normal position. The Sine behavior has to complete the cycle before being able to move down again.

Can the Sine behavior be enhanced to include the ability to set the reference line (top/middle/bottom, or 1/0.5/0), and/or being able to set/reset the cycle (start/middle/end, or 0/0.5/1)? See embedded image:

Sine Behavior.jpg
You do not have the required permissions to view the files attached to this post.
B
17
S
2
Posts: 88
Reputation: 1,503

Post » Thu Apr 24, 2014 12:59 pm

You could use the Period Offset to set its initial position on another part of the sine "wave". That's how I do it anyway :)
B
108
S
40
G
11
Posts: 456
Reputation: 13,787

Post » Thu Apr 24, 2014 1:09 pm

+1

I think that if the sine behavior had some conditions that compared the progress, it would add a lot to it's functionality

In the meantime, perhaps the LiteTween and/or the EaseTween behaviors might prove even more useful for the thing that you want to do.

https://www.scirra.com/forum/behavior-litetween_t70700?&hilit=EaseTween
composer - multimedia artist
www.eli0s.com/en/
B
69
S
27
G
6
Posts: 1,146
Reputation: 10,379

Post » Fri Apr 25, 2014 1:59 am

Thanks for the replies! I'll try out your suggestions today.
B
17
S
2
Posts: 88
Reputation: 1,503


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 14 guests