How do I Set Speed Of Platformer

Get help using Construct 2

Post » Sun Oct 18, 2015 6:17 pm

Hello Everyone,

I have a platformer that I want to move at the speed of an objects width. Sort of like and analog stick. So the wider the object the faster the platfomer will move. I have included a CAPX with a technique I ended up getting to half work but its weaksauce. It seems soooo easy but I am having trouble making this work. Any help would be appreciated. :)


CAPX FILE HERE!

Thanks Constructors!
B
42
S
14
G
3
Posts: 284
Reputation: 8,833

Post » Sun Oct 18, 2015 9:05 pm

I think you are wrong in setting max speed to imagewidth - imagewidth is the original size of the tile. Try using abs( tiledbackground.width)
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 » Sun Oct 18, 2015 9:55 pm

Here you go.

https://db.tt/tvodvsJR

It's not easy because you have to take into account the moving position of Mouse.X (as the screen scrolls the X becomes greater).
ImageImage
B
123
S
23
G
7
Posts: 1,071
Reputation: 13,091

Post » Mon Oct 19, 2015 1:51 am

RamPackWobble and GenkiGenga, Thank you very much for your help.
B
42
S
14
G
3
Posts: 284
Reputation: 8,833


Return to How do I....?

Who is online

Users browsing this forum: MassimoF, Microbex and 24 guests