RPG Maker Forums

Hi
I forgot the equation to calculate a distance traveled with the angle pi

Here my context
//Picture 1 have position [x,y,angle]
P1xy = [10, 10, 0];
//Picture 2 have position with picture1 [x,y]
P2xY = [(P1xy[0]+10), (P1xy[1]+20)]

But if the angle of my picture 1 change
Which formula I will be able to use, to take into consideration, the angle distance
And picture2 follow xy of picture1 with angle distance
thanks

Latest Threads

Latest Profile Posts

Day 9 of giveaways! 8 prizes today :D
He mad, but he cute :kaopride:

Our latest feature is an interview with... me?!

People4_2 (Capelet off and on) added!

Just beat the last of us 2 last night and starting jedi: fallen order right now, both use unreal engine & when I say i knew 80% of jedi's buttons right away because they were the same buttons as TLOU2 its ridiculous, even the same narrow hallway crawl and barely-made-it jump they do. Unreal Engine is just big budget RPG Maker the way they make games nearly identical at its core lol.

Forum statistics

Threads
106,040
Messages
1,018,476
Members
137,824
Latest member
dobratemporal
Top