sine

Discussion and feedback on Construct 2

Post » Fri Mar 23, 2012 11:39 am

is there a way to make monster go right,left (sine behaviour) but when he go left his face go to left also when he go right his face go to right ?

if there isn't a way should you guys make a behaviour for that or edit sine?
B
48
S
15
G
6
Posts: 795
Reputation: 12,035

Post » Fri Mar 23, 2012 1:25 pm

While sin is active have an event checking every tick which direction sprite is moving, and flip sprite.
B
192
S
6
G
7
Posts: 213
Reputation: 10,178

Post » Fri Mar 23, 2012 4:05 pm

i don't get it , is it like this?

i want it like this when he go right i want him to face it (right side):
B
48
S
15
G
6
Posts: 795
Reputation: 12,035

Post » Fri Mar 23, 2012 4:37 pm

[QUOTE=Zetar] While sin is active[/QUOTE]

Sin is always active in Sin City. ^^

Cool not commented but explicit capx
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 6,999
Reputation: 57,793

Post » Fri Mar 23, 2012 5:00 pm

Here is an example using the sine cycle to mirror the image.
http://www.box.com/s/d1a3ac1ceb360e665cd2

LOL - @Kyatric - Yours flips in the middle, not at the ends Zetar2012-03-23 17:02:01
B
192
S
6
G
7
Posts: 213
Reputation: 10,178

Post » Fri Mar 23, 2012 5:05 pm

It gives some momentum impression.
Anyway the idea is there, spot the moment in the cycleposition when you need to mirror the image.
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 6,999
Reputation: 57,793

Post » Fri Mar 23, 2012 5:52 pm

thanks both of you ^^ good and works fine!
B
48
S
15
G
6
Posts: 795
Reputation: 12,035

Post » Tue Jun 26, 2012 6:04 pm

I was looking for this solution all morning... Thanks
B
85
S
31
G
22
Posts: 384
Reputation: 18,587

Post » Tue Jun 26, 2012 6:11 pm

@jogosgratispro at least you used the search not like some others :P good luck with your game
B
48
S
15
G
6
Posts: 795
Reputation: 12,035

Post » Mon Apr 08, 2013 10:23 pm

I love you <3
Finally a solution to my problem!

Thanks!
B
34
S
8
G
7
Posts: 498
Reputation: 7,753

Next

Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 14 guests