I think this should be kind of easy, but I have never done anything like it before. I am trying to have a line from one moving point to another point (the mouse). Preferably without using any extensions. I am thinking of using a pixel and increasing scale on it or something, but it cant go past the the two points.. This is exactly what I am looking for: Please login to see this link. (The line between the player boat and the mouse curstor)

Drawing a line between two points?
Welcome to our brand new Clickteam Community Hub! We hope you will enjoy using the new features, which we will be further expanding in the coming months.
A few features including Passport are unavailable initially whilst we monitor stability of the new platform, we hope to bring these online very soon. Small issues will crop up following the import from our old system, including some message formatting, translation accuracy and other things.
Thank you for your patience whilst we've worked on this and we look forward to more exciting community developments soon!
Clickteam.
A few features including Passport are unavailable initially whilst we monitor stability of the new platform, we hope to bring these online very soon. Small issues will crop up following the import from our old system, including some message formatting, translation accuracy and other things.
Thank you for your patience whilst we've worked on this and we look forward to more exciting community developments soon!
Clickteam.
-
-
Here's a basic example for you.
This approach works best using Direct3D. -
Thanks Popcorn
How come it works best in Direct3D though? I am developing for all platforms (flash, ios, android and so on) so I need it to work on them all
-
The reason is that scaling is a lot faster in HWA, as far as I know. Flash doesn't have HWA, but it's still probably faster than using the Surface object in Flash, and the Surface object isn't available for all runtimes (just EXE and Flash).
-
thanks popcorn.
Here's the same example with cross-platform support.
-
Nice thanks!
-
Outcast: You're welcome
happygreenfrog It is not the speed that is an issue here, but the sloppyness of the line. It isn't smooth in the other runtimes.
tompa: That example is exactly the same, but with a more complicated expression. It is not the Clickteam Movement Controller that screws things up. It doesn't change the fact that the line will seem sloppy on all runtimes exept the hardware accelerated ones.
-
Popcorn: aa you're right, the ct controller worked in android, flash and ios.. pretty much cross-platform already then ^^.. I still suggest avoiding extensions whenever possible and this is a way how. I have lost weeks of debugging problems from extensions. Lines get antialiased bad in nonhardware acceleration? that's good to know *honest*. I have encountered strange interpolation artifacts in scaling on similar devices, looks like they use the "nearest neighbor" interpolation from Photoshop.
-
Do you know how to fix these objects. I want something like this: from dot to dot connect a figure
Participate now!
Don’t have an account yet? Register yourself now and be a part of our community!