How do I change rotation speed variable with interpolation

Get help using Construct 2

Post » Wed Sep 30, 2015 1:05 pm

Message: sandronize can only post plain text URLS until they have 500 rep. 2 URLS modified. Why?
I'm using a sprite with rotation beahvior a global variable for the speed, one button for increase speed *2 and anothe for speed/2
Is there any way to make an interpolation between them in orderd to change speed smoothly?

https://www.dropbox.com/s/n00844egvy90plr/img.png?dl=0
Image

https://www.dropbox.com/s/ssd23i4tb7fg6yr/rotation_interpolation.capx?dl=0
B
6
S
1
Posts: 55
Reputation: 545

Post » Wed Sep 30, 2015 3:21 pm

August 2015 - I misplaced a lot of links - I will try to find backups and repost. If You find a post that interests please reply to post with @rampackwobble and I will get a nudge!

If you find my posts useful please consider donating something to a local charity or to the http://www.mndassociation.org/
B
64
S
34
G
47
Posts: 1,194
Reputation: 30,882

Post » Wed Sep 30, 2015 3:59 pm

second thought you might be better off just using the rotational behaviour acceleration and comparing sprite.rotation.speed to required speed and when close enough then set acceleration back to 0
August 2015 - I misplaced a lot of links - I will try to find backups and repost. If You find a post that interests please reply to post with @rampackwobble and I will get a nudge!

If you find my posts useful please consider donating something to a local charity or to the http://www.mndassociation.org/
B
64
S
34
G
47
Posts: 1,194
Reputation: 30,882

Post » Wed Sep 30, 2015 4:53 pm

thanks ! I will check it out after c2 upgrade at version 214
B
6
S
1
Posts: 55
Reputation: 545

Post » Wed Sep 30, 2015 6:30 pm

version 2

https://goo.gl/UeWjnb

214 update at bottom of this page or if you prefer

How to open newer versions of capx files

unzip the capx and edit the caproj file in a text editor

find where is says (for example)

<saved-with-version>21100</saved-with-version>

and replace with an older number eg

<saved-with-version>17000</saved-with-version>

save and try

Search the forum for more information about opening newer versions in old versions.
August 2015 - I misplaced a lot of links - I will try to find backups and repost. If You find a post that interests please reply to post with @rampackwobble and I will get a nudge!

If you find my posts useful please consider donating something to a local charity or to the http://www.mndassociation.org/
B
64
S
34
G
47
Posts: 1,194
Reputation: 30,882

Post » Thu Oct 01, 2015 7:51 am

thanks! nice trick to open new vesion files
B
6
S
1
Posts: 55
Reputation: 545


Return to How do I....?

Who is online

Users browsing this forum: adventurist, Artcadev, Blendi1223, PROxMTswatTR and 23 guests