-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 0|597|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-




therevillsgames

Rotation with Parent and Children

4th January 2022

Now to get it moving in a nice arc...


therevillsgames

Rotation with Parent and Children

4th January 2022

Ah.... watch this video: (Linkage)
And I nearly had it... but I was using the final angle not the delta of the angle, so updated the code to:
[code] xDiff = cx - sx
yDiff = cy - sy

angleDiff = targetRotation - Piece(selectedPiece, *snip*


therevillsgames

Rotation with Parent and Children

4th January 2022

Thanks Guys... Shroom I'll have a look.
Currently gone back to basics with trig and converted it over to JSE. So I have just two pieces, connected, and I want to rotate them relative to each over.
So
[code] targetX = xDiff * Cos(-targetRotation)*snip*


therevillsgames

Rotation with Parent and Children

4th January 2022

Actually what I think I need is the formula to calculate the final x and y after the rotation.
So I know the target rotation and I know the difference between each piece... now where did I leave my school maths books ;)


therevillsgames

Rotation with Parent and Children

4th January 2022

Yeah I'm pretty poor with the whole trig stuff :( And it doesnt help that Blitz works in degrees and has Y going down O_o


therevillsgames

Rotation with Parent and Children

4th January 2022

Thanks Jay, always good to see how another dev goes about solving a problem :)
With your rotation it looks like it always rotates around the center one, I'm trying to rotate it around the one that is selected... I'll keep plugging away :)


therevillsgames

Rotation with Parent and Children

3rd January 2022

I'm working on a Jigsaw game and want to rotate the connected pieces in a nice smooth animation by 90 degrees each time around the selected piece...
My current idea is to change the image handles, is there a better way than what I am trying... as it&*snip*


therevillsgames

Happy New Year 2022

31st December 2021

Now looking forward to the 2nd of Feb ;)
2/2/22 :P


therevillsgames

Happy New Year 2022

31st December 2021

Happy New Year 🎉 2022


therevillsgames

Dabz Paints

30th December 2021

Yep Dabz... it's warming up... today a toasty 37C today, tomorrow 40C... Not quite a white Christmas here :P


therevillsgames

Qube@SyntaxBomb

29th December 2021

Looks like it's back... and yep I can Qube online...


therevillsgames

Qube@SyntaxBomb

29th December 2021

<3 SoCoder!


therevillsgames

Qube@SyntaxBomb

29th December 2021

Yeah I'm on Discord now ( (Linkage) ) talking with Ron... apparently someone saw Qube on SB today... maybe he did an update and broke something :?


therevillsgames

Qube@SyntaxBomb

29th December 2021

I'm getting 404 for (Linkage)
:(


therevillsgames

Dabz Paints

28th December 2021

Looks great Dabz!


therevillsgames

8-bit Christmas

27th December 2021

8-bit Christmas was pretty good! Recommended for the 80s kids :)


therevillsgames

Merry Christmas 2021

25th December 2021

Ah... that does ring a bell, but we never did it... maybe a project for next year ;)


therevillsgames

Merry Christmas 2021

25th December 2021

hedgehog Jay?


therevillsgames

James Webb Telescope

25th December 2021

1 hour to go! Wishing for a successful launch!


therevillsgames

Merry Christmas 2021

24th December 2021

Our Christmas buffet:
(Image.jpeg)
We were sooo full!


therevillsgames

Merry Christmas 2021

24th December 2021

Merry Crimbo one and all!


therevillsgames

Badvent 2021

21st December 2021

Wow 4/5 days to go already!


therevillsgames

Retro Magazine

18th December 2021

Looks very cool Pakz!


therevillsgames

Building an Arcade

18th December 2021

Yeah we'll have a space issue too, with the Pandora Box arcades some of them ship with the controllers that you can just plug into the TV... not quite the same as having a cabinet.
(Linkage)


therevillsgames

Snow Effect

18th December 2021

Cool, yeah just started playing with it myself :)

Newer Posts More - Older Posts