accelerate and decelerate

Get help using Construct 2

Post » Tue Dec 17, 2013 7:38 am

Hi Guys,
I am sure this has been asked quite a lot of times, i just want if you can point me to a right thread which just shows a simple platform acceleration and deceleration of an object.
Should i use Custom Movement, bullet behavior or bullet speed to control this? very confused at the moment.

Would appreciate your quick replies.
Thanks guys.
B
7
S
2
Posts: 18
Reputation: 573

Post » Tue Dec 17, 2013 7:41 am

heres a link to my capx file. if the runner collects a bottle, how should i show a acceleration rather that direct speed shifts and after couple of seconds it should come to a normal speed.

www.dropbox.com/s/p64owdbwgmjvq5f/myrunner.capx
B
7
S
2
Posts: 18
Reputation: 573

Post » Tue Dec 17, 2013 9:55 am

ok..thanks LittleStain,
but here's where the real problem lies..i have given a platform behaviour to my 'player' but when he collects a boost, i dont really move this player anywhere, what i do is increase the tiled background or the objects speed to which i have given a bullet bahviour..in bullet behaviour we do not have max speed..so how do i accomplish this?..

If you see the capx file, right now all the objects are created dynamically and moves across the scene using the bullet behaviour and in boost all these objects move faster. i am not saying this is the best way to do this but if you can suggest an alternative..i wouldnt mind giving it a shot.
Thanks again.
ameer.
B
7
S
2
Posts: 18
Reputation: 573

Post » Tue Dec 17, 2013 10:05 am

I can't open your capx, for it uses a third party plugin, but I understand what you mean.

There are multiple ways to do this, but here's an easy one (It's not the best solution, but it will work).

Create a global variable called TopSpeed
Set it to the original bullet behaviour.

System compare two values : bullet.speed < TopSpeed
- add 1 to bullet speed.

You should do that for each of your objects having bullet behaviour

Then add the event to change the variable TopSpeed to a higher number when collecting a boost.

I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Tue Dec 17, 2013 1:09 pm

LittleStain, You are the man!
Implemented and works like a charm!
Thanks so much!
B
7
S
2
Posts: 18
Reputation: 573

Post » Tue Dec 17, 2013 2:10 pm

Looks like spam to me from architravels. Just report his post.
If your vision so exceeds your ability, then look to something closer.
Moderator
B
134
S
30
G
84
Posts: 5,374
Reputation: 58,430

Post » Sun Dec 22, 2013 9:17 am

excuse me? spam..since the guy helped me..i have praised him and am thankful to him..why would you say its a spam???
B
7
S
2
Posts: 18
Reputation: 573

Post » Sun Dec 22, 2013 9:34 am

There was another message which has now been deleted. That message was spam. Nothing to do with your question and/or my answer to it.
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Sun Dec 22, 2013 9:36 am

oh ok!..oops! my apologies zenox98.
B
7
S
2
Posts: 18
Reputation: 573


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 13 guests