EN_US
<< May 2020 >>

 
 
 
 
1
2
3

4
5
6
8
9
10

11
12
13
14
15
17

18
19
20
21
22
23
24

25
26
27
28
29
30
31

Recent Entries:

16/05/20 ( 17:58:59 )
Animation - JAVA

07/05/20 ( 14:49:18 )
Blog update and - JAVA

11/01/20 ( 02:06:48 )
Happy New Year!

16/05/20 ( 17:58:59 ) - Animation - JAVA #coding

Oh boy, I am pretty happy about the progress... Practically of what you see in this video I thought was not possible and... I did it :)

Here is a link to the animation update from way back in 2017 - click - and here is a preview of what it looks like in Java atm:



I am jumping through some hoops to make this possible and it is far from perfect, but does it not look much better already? Note that the road is already generated with a given Point array which I thought was IMPOSSIBLE. But I am actually drawing the road into its own mask MovieClip and I can move, scale, draw, and do everything I need.

THE ONLY THING that is missing before I can really, really relax and easily copy paste the rest of the code and be almost done (famous last words, I know) is the relational way that MovieClips had their positioning work. I am not even sure how this worked with the animation tweening you send things to coordinates and they get turned into global coordinates on the fly??

So to explain.. Think about the BlackHole instance there, it is sitting at x = 20, y = 20. If I now create BlackHoleDebris, and set it to be at coordinates (0, 0) - in flash, this puts it at 20, 20 automatically... and so... I wonder how this works because when moving, the engine-VisualEffect tells it to go to the Black Hole coordinates, (20, 20) - would this not result in 40, 40 ??? I have to do some magic for this to work, but I will make it happen :)

Hope that you are safe and healthy, and don't hug strangers, especially in these times.

Much love

Chris / SLiPCoR