Trigonometry problem, DrawXY/PlayerXY [pics] (Fixed)

LtVax27

  • *
  • Posts: 85
Trying to set the rotation for the binary planets. The 1st line of code works and produces the blue circle, the 2nd line is what's not working and puts the planet way out about 10 blocks (could only see a bit of the orbit line where it was) Now if this wont work I can't merge it with the bottom block to set the random rotation of there joined orbit (blue circle)



I have checked and nothing gets changed (blue circle wouldn't be there other wise) so I'm thinking some thing to do with scene/screen space?

« Last Edit: August 27, 2017, 09:05:19 pm by LtVax27 »

LIBERADO

  • *
  • Posts: 2659
In the 2nd line of code:

Select "x" instead of "x (on screen)"
Select "y" instead of "y (on screen)"

That is all.
I'm spanish, excuse me for my bad English.
I'm not a private teacher. Please, post your questions in the public forum.

LtVax27

  • *
  • Posts: 85
(Starts hitting head against desk) fixed, but why was it not grabbing the same numbers? Anyway, thanks for the help and hopefully I'll have this uploaded soon for people to check out. (Still got to add moons but this should help do that)

LIBERADO

  • *
  • Posts: 2659
Drawing blocks use coordinates relative to the screen.
Position blocks use coordinates relative to the scene.

I would like to see this animation when it is finished.
I'm spanish, excuse me for my bad English.
I'm not a private teacher. Please, post your questions in the public forum.

LtVax27

  • *
  • Posts: 85
I would like to see this animation when it is finished.

Not sure if I'll animate them as the time one will spend viewing the system map would not result in any movement of the Planets. (Saves me a lot of headache also) The System Gen is published on the Arcade atm under Developement.