Get vextorX of a Bullet Object

Get help using Construct 2

Post » Fri Apr 25, 2014 4:00 pm

How I Get a vectotX of a Bullet Object??

i want put the vextorX value on a text

image:
Image


.capx file
https://www.dropbox.com/s/ddtmcev9u2hxf ... _test.capx

Thanks
B
48
S
9
G
10
Posts: 200
Reputation: 8,258

Post » Fri Apr 25, 2014 4:15 pm

horizontal speed = speed * cos(angle)

or in this case:

Code: Select all
pelota_candela.Bullet.Speed * cos(pelota_candela.Bullet.AngleOfMotion)
B
55
S
29
G
19
Posts: 1,520
Reputation: 25,630

Post » Fri Apr 25, 2014 4:25 pm

Set text: "VectorX of Ball = " & pelota_candela.X
ImageImageImage
B
71
S
21
G
222
Posts: 3,652
Reputation: 124,733

Post » Fri Apr 25, 2014 4:56 pm

@ramones Thank you.
B
48
S
9
G
10
Posts: 200
Reputation: 8,258


Return to How do I....?

Who is online

Users browsing this forum: R0J0hound, SputnikCZ and 3 guests