How do I rotate an object in this way?

Image visualizes it, sorry for bad writing. I want to rotate the circle with the triangle but make it move to its tip

What happens instead… don’t want that

10 Likes

So something like this?:

But obviously as a single orbit?

`Set Position to x (a + (sin(θ) × b)) y (c + (cos(θ) × b))`

a = x center point, b = amplitude, c = y center point, θ = angle (0 = up, 90 = right, 270 = left)

5 Likes

Yeah… I obviously don’t know how to copy the script to my already built game… since when i try to copy it it doesn’t work and displays no keyboard, the x and y positions not able to be clicked…

6 Likes

But that’s not what I’m looking for, I want the circle (in the picture of main comment) to be rotated with the triangle

5 Likes

It’s basically the same concept. The circle is secretly orbiting the triangle in a way that looks like it’s attached to it.

You want the tip of the triangle to touch the center or edge of the circle?

4 Likes

Like I want to not orbit, but like, attach the circle to the tip of the triangle so it rotates with the triangle.

4 Likes

Check the picture above, the circle is attached to the triangle and I want that. (White line indicates rotation, the text reads how to rotate circle with trian-gle?)

5 Likes

Ok, so edge. I’ll see what I can do… give me a couple minutes…

3 Likes

Alright

4 Likes

Something like this?

4 Likes

Yeah, I want to make a projectile launcher, that’s the perfect project… thanks!
But there’s one problem, how am I gonna copy the script to my already built project? And I cannot even copy the point to finger script you made into my projectile launcher game. Hopscotch has no point towards block

5 Likes

You mean from this project?:

Super weird. Maybe you could save a certain project with custom abilities in it to your profile, open it in the project builder, save a preset to your device, then load that preset into the project you’re working on. Don’t know how? Ask @Tri-Angle.

4 Likes

Yeah… how to share a video for the bug?

5 Likes

Do you have access to YouTube or Catbox? You must be able to upload a video to one of these to share it here. Preferably Catbox so you don’t have to post it in the videos by hops (requirement for YouTube videos, and the channel has to be HS related only (No Inappropriate Content nor Private Info), and the videos must not exceed 14 minutes).

3 Likes

4 Likes

Hmm… do you have any other devices where Catbox isn’t blocked?

If not, then you unfortunately won’t be able to share videos here.

You could share screenshots of the bug as an alternative method.

Most of the time, the reason for the failure is due to the variable reference being undefined (because they are all unique to each project). As for custom blocks and rules, we might be able to share them to others in the distant future. It’s currently unknown when that’ll be. THT has to take care of a few things first before they’ll finally be ready to implement Community Gardens.

3 Likes
5 Likes
5 Likes

I shared the screenshots, those are the photos of the video I was gonna send

5 Likes

Huh. Now I think I know why the blocks are still not ready to be shareable…

And I’m guessing the entire custom block deleted itself when you left the project and went back in (doing this will usually cause the null variables to be deleted).

Btw, those equality operators in variable blocks were made possible thanks to the secret blocks that you can get via the project builder or the Project Composer Shortcut.

4 Likes