How can i give different speed based on surface?

Get help using Construct 2

Post » Fri Aug 09, 2013 3:50 pm

Hi,

Can you please tell me, how i can give different speed while my sprite is jumping on a different kind of surfaces?

Also, how can i make some surface gain more power to throw the object coming contact to it depends on some special situation?

Thanks for your help.
B
11
S
1
Posts: 9
Reputation: 613

Post » Fri Aug 09, 2013 5:27 pm

You can set simply by using
sprite=>Is in collision with=>desired surface
and you can set the speed of it.
You can use the same for your second ques as well.
B
7
S
1
G
1
Posts: 28
Reputation: 741

Post » Fri Aug 09, 2013 6:42 pm

You could also do something like assign an instance variable to your sprites that are used as tiles (in the case of a sprite sheet being used as separate frames of animation in one sprite). You could then store the speed in that variable and in your on collision just set speed to groundtile.speed that may make it easier to control and track what speed each type of ground tile has. that way each type of ground tile stores it's own value and you don't have to keep a list somewhere of what speeds should be assigned for each type of tile. Just a thought...
B
49
S
12
G
10
Posts: 1,833
Reputation: 14,603

Post » Fri Aug 09, 2013 7:20 pm

Thanks for the valuable inputs BluePhaze and ramkumarb.

I was creating a simple prototype game where a ball will bounce on different objects to go in to the proper place.

What i noticed, the visuals of 2-3 elements are showing little blur while they are moving, while in default Platform navigation and also when the ball is bouncing heavily.

BTW, there is no code in there, only default behavior. Is it normal? or something I need to check?

Thanks again.
B
11
S
1
Posts: 9
Reputation: 613


Return to How do I....?

Who is online

Users browsing this forum: Christmas, Hassan Hackmi, minigame and 6 guests