[Behavior] LiteTween

Post your completed addons to share with the community

Post » Fri Jan 27, 2017 11:48 pm

LiteTween is a Behaviour, not a Plugin. You've put it in the wrong directory. Just move it.
ImageImageImage
B
71
S
21
G
232
Posts: 3,696
Reputation: 129,868

Post » Sat Jan 28, 2017 11:02 am

You installed in wrong place
B
250
S
39
G
15
Posts: 1,953
Reputation: 40,623

Post » Sat Jan 28, 2017 1:49 pm

Just a quick question.

Using the bounce function as an example, is there a way to determine when the sprite initially bounces? It would be nice to be able to put some sound effects in. In my game, it's not colliding with anything, so I can't just wait for a collision. It's more of a menu feature, so it just drops into place.

I'm looking at the conditions associated with it, and wonder if it's in there. I feel I may need to start experimenting... but it's probably something like 0.5 on the first collision, 0.75 on the second and so on and so forth.
@bearboxmedia
www.bearboxmedia.com

Nintendo Wii U Developer using Construct 2
B
79
S
12
G
7
Posts: 963
Reputation: 10,721

Post » Tue Jan 31, 2017 1:57 am

Thank you all!! It working now.
B
5
S
2
Posts: 2
Reputation: 429

Post » Wed Feb 08, 2017 2:00 am

lunarray wrote:It is a string, if it is a position tween you can use "700,200" in the target to tween to x=700, y=200. If you want to use variable let's say MyTargetX and MyTargetY, you can turn those two variable into string by entering

MyTargetX & "," & MyTargetY

into the target field.



I am having trouble using a variable for Opacity and Angle, It works for Duration.
With "80" it works correctly. When I make "80" a global or local variable (MaxOpacity/ MaxAngle) it ignores the variable and stays at the object's current opacity/angle for the whole tween.

Anybody know a way around this? It is part of my game so I really need a variable to work.
B
62
S
35
G
13
Posts: 230
Reputation: 12,402

Post » Wed Feb 08, 2017 8:30 am

Yes, and it is exactly what lunarray wrote in the quoted text.

Need to translate number variable to a string with str(number).
B
33
S
18
G
28
Posts: 2,493
Reputation: 20,950

Post » Thu Feb 09, 2017 12:25 am

I actually came back to erase the post, because I figured it out.
I'll leave it now to help others.
I also didn't know about str() until now.

I changed an option in 'Start' Parameters and it started working.
I didn't see the str(variable) part.

I had:
MyTargetX

I changed a Parameter and it started working.
I tried Str(MyTargetX) with both Parameters and it was working.


Thanks for your time, helpful as always.
B
62
S
35
G
13
Posts: 230
Reputation: 12,402

Post » Thu Feb 09, 2017 3:31 am

When I'm using the angle tween, how can I choose if the movement is clockwise or counter-clockwise?
B
20
S
4
Posts: 385
Reputation: 2,270

Post » Thu Feb 09, 2017 2:30 pm

@Zathan just use the minus ( - ) before your angle number for a counter clockwise.
B
36
S
15
G
1
Posts: 59
Reputation: 3,441

Post » Thu Feb 09, 2017 8:03 pm

saour wrote:@Zathan just use the minus ( - ) before your angle number for a counter clockwise.


Thank you for the answer!
Unfortunately, I think it's not that simple :(
Please, take a look in this capx: https://1drv.ms/u/s!Ai2wcz1Xix0ygbwxXankv4EdwEhpsg
Seem like, randomly, the angles mix themselves when the square jumps. When it do walljumps too.. I've tried various combinations in the tween values.
B
20
S
4
Posts: 385
Reputation: 2,270

PreviousNext

Return to Completed Addons

Who is online

Users browsing this forum: No registered users and 8 guests