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




therevillsgames

Happy Birthday, Rockford

14th January 2022

More cake 🍰 Happy birthday 🎉


therevillsgames

Quantum Leap - 2022

14th January 2022

Oh boy!


therevillsgames

James Webb Telescope

8th January 2022

WEBB IS FULLY DEPLOYED!


therevillsgames

JSE - Jay's Scripting Engine

6th January 2022

Cool - I'll have a play later :)


therevillsgames

Rotation with Parent and Children

6th January 2022

Thanks! And barring the constant issue I enjoyed porting it to JSE :)


therevillsgames

Rotation with Parent and Children

5th January 2022

Yeah the movement is pretty cool :)
Here is the final BlitzMax code working:
[code]SuperStrict
Const SCREEN_WIDTH:Int = 1400
Const SCREEN_HEIGHT:Int = 900
Const _ABOVE:Int = 0, _BELOW:Int = 1, _LEFT:Int = 2, _RIGHT:Int = 3
Graphics(SCREEN_WIDTH, SCRE*snip*


therevillsgames

James Webb Telescope

5th January 2022

Linkage
''Secondary Mirror Deployment Complete'' - Yay! Nearly half way there...


therevillsgames

JSE - Jay's Scripting Engine

5th January 2022

Least you've found it :) I guess it's a similar issue with the $ROTATE_AROUND_ON.
[update]-=-=-[/update]
With the debug info, maybe create a DebugMode similar to the FPS Mode, but dont fade it out and scroll it instead.


therevillsgames

JSE - Jay's Scripting Engine

5th January 2022

Ah cool... just tried DebugMode On... and yep I can see the logs briefly in FPS Mode... but not in the Browser Dev Console (Running Chrome). I can only see this:
[code]-=-=-=-=-
JSE_3gfp.js:2704 JSE v.3gfp
JSE_3gfp.js:1634 Alignment correction : 0:6.*snip*


therevillsgames

JSE - Jay's Scripting Engine

5th January 2022

Is there a console or similar with we can send log messages to? Maybe an enhancement ;)


therevillsgames

Inconsistency

5th January 2022

Thanks Jay :)


therevillsgames

JSE - Jay's Scripting Engine

5th January 2022

I'm finding that constants dont always work:
With my rotating around parent code: $ROTATE_AROUND_ON is meant to be 1 or 0, but it looks like it picks up an ROTATE_AROUND_X OR _Y position... also I couldnt use $WIDTH and had to change to $PIECE_WIDTH *snip*


therevillsgames

Inconsistency

5th January 2022

Sorry... I was searching for ''constant'' (for JSE) and added it to the shoutbox instead of the seachbox :(


therevillsgames

Inconsistency

5th January 2022

constant


therevillsgames

Happy Birthday, Brice

5th January 2022

Happy Cakeday!


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

Newer Posts More - Older Posts