How Do I Match Object Bullet Speed

Get help using Construct 2

Post » Sat Sep 07, 2013 2:01 am

Hello, I am wanting a newly spawned object to match the same speed of a object already spawned. How would I accomplish this? Both of the objects contain the bullet behavior. MrGator2013-09-07 03:12:58
B
6
S
1
Posts: 1
Reputation: 352

Post » Sat Sep 07, 2013 9:49 am

Hi @MrGator,

You could do this by using a global variable, and setting it to the speed of the object you wish to match. When you spawn the new object use your global to set the new bullet speed.

Hope that helps :)
B
33
S
6
G
7
Posts: 494
Reputation: 8,252

Post » Sat Sep 07, 2013 10:16 am

on spawn - set objectnew bullet speed - objectold.bullet.speed ?
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


Return to How do I....?

Who is online

Users browsing this forum: Artcadev, Uk4dee and 25 guests