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
49
S
15
G
6
Posts: 795
Reputation: 12,085

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
49
S
15
G
6
Posts: 795
Reputation: 12,085

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
253
S
86
G
42
Posts: 7,037
Reputation: 59,189

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
253
S
86
G
42
Posts: 7,037
Reputation: 59,189

Post » Fri Mar 23, 2012 5:52 pm

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

Post » Tue Jun 26, 2012 6:04 pm

I was looking for this solution all morning... Thanks
B
90
S
32
G
23
Posts: 385
Reputation: 19,334

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
49
S
15
G
6
Posts: 795
Reputation: 12,085

Post » Mon Apr 08, 2013 10:23 pm

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

Thanks!
B
35
S
8
G
7
Posts: 512
Reputation: 7,813

Next

Return to Construct 2 General

Who is online

Users browsing this forum: Yahoo [Bot] and 7 guests