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

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
193
S
6
G
7
Posts: 213
Reputation: 10,203

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

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
268
S
96
G
67
Posts: 7,219
Reputation: 73,739

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
193
S
6
G
7
Posts: 213
Reputation: 10,203

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
268
S
96
G
67
Posts: 7,219
Reputation: 73,739

Post » Fri Mar 23, 2012 5:52 pm

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

Post » Tue Jun 26, 2012 6:04 pm

I was looking for this solution all morning... Thanks
B
105
S
40
G
23
Posts: 395
Reputation: 20,589

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

Post » Mon Apr 08, 2013 10:23 pm

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

Thanks!
B
36
S
8
G
8
Posts: 539
Reputation: 8,425

Next

Return to Construct 2 General

Who is online

Users browsing this forum: Darknessed, zenox98 and 7 guests