Jump to content
Search Community

altering width of CirclePath2D results width=0

szaqal test
Moderator Tag

Recommended Posts

You didn't do anything wrong - it's just that one of the optimizations I made in all the motion paths caused them to only render their line if/when they were in the display list and "visible" was true. However, I don't think that optimization is necessary and it's causing problems here, so I removed that optimization. Just download the latest version and it should work fine for you even if you don't add it to the display list.

 

By the way, keep in mind that by default, there's a 1-pixel stroke on the line of the motion path (so that you can see it if you add the motion path to the display list), so if you set the CirclePath2D's radius to 100 the width/height will actually report as 101 but you can easily change this by using the lineStyle() method and setting the thickness to 0. myPath.lineStyle(0)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...