Vector explaination(?)

Discussion and feedback on Construct 2

Post » Fri May 03, 2013 7:05 pm

Hi~
I know its stupid of me...but can any one please explain me vector X ,vector Y...etc stuff related to vector in construct 2?

I don't understand it.

please,I would really really appreciate it..

Thank you
B
2
Posts: 7
Reputation: 166

Post » Fri May 03, 2013 7:29 pm

That type of vector is basically a direction with, or without force.
It can be thought of as the x, and y with an angle.

Think of a bullet trajectory. The way it is heading is its vector.
Image Image
B
161
S
48
G
90
Posts: 7,356
Reputation: 66,767

Post » Sat May 04, 2013 4:34 am

Thanks for the reply :')

Can you explain me with an example?
such as,this one(can't upload photo from phone :/ )
keyboard>on F pressed>>player:set platform vector Y to player.Y-5

This is suppose to make my player fly.It works.But I don't understand it & don't know how to modify it.

Thanks again~
B
2
Posts: 7
Reputation: 166

Post » Sat May 04, 2013 6:04 am

[QUOTE=ratulrafsan] Thanks for the reply :')

Can you explain me with an example?
such as,this one(can't upload photo from phone :/ )
keyboard>on F pressed>>player:set platform vector Y to player.Y-5

This is suppose to make my player fly.It works.But I don't understand it & don't know how to modify it.

Thanks again~[/QUOTE]

Vector Y and Vector X are another method of describe a vector (the other one is with a angle and a strengh)

In fact, the larger the value of the Vector Y is, the quickier your player goes down or rise, the sign (+ or -) define if you will go Down or Up

EDIT: Also, don't forget the gravity can influence the vector Y after you set itAphrodite2013-05-04 06:05:30
https://www.scirra.com/forum/viewtopic.php?t=152506

And that is why you shall respect the bug reports guidelines, not only giving a capx is making the bug reproductible in one click in a situation they can work with (less time wasted trying to reproduce vague instructions) but also it helps filtering false positives.

Game design is all about decomposing the core of your game so it becomes simple instructions.
B
42
S
17
G
16
Posts: 2,094
Reputation: 15,355

Post » Sat May 04, 2013 9:59 am

If you'd like an understanding of how vectors work, try Math for Game Developers: Intro To Vectors and Math for Game Developers: Advanced Vectors, or alternatively Vectors and Matrices: A Primer. These obviously aren't specific to Construct, but I think it's the underlying theory you want explained.

Hope that's helpful! jbadams2013-05-04 10:00:30
B
24
S
5
G
2
Posts: 104
Reputation: 3,136


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 18 guests