-
A few questions..
1.How might I go about taking a static 1 pixel object..and manipulating it to act like a Line in MSPaint?
Example...user left clicks anywhere on the screen. The object is created at the mouse..If the user then holds down left click and moves the mouse, the object will stretch to reach the mouse..it will also rotate with the mouse..when user lets go of left click, the line is destroyed.. I've found a few examples on this..where the line would be considered a laser..but they all use the draw object..If I'm not mistaken the "drawn line" cannot have conditions as "line overlaps object"..
2. I asked this in a previous post so I didn't end up making 2 but I can only assume it was overlooked XD;; Anyway.. I made a "dragging camera" using the Advanced Direction Object. It works fine and all, but when the screen starts scrolling my player will start shaking.I notice this isn't as bad when the camera follows fast moving objects, but I can't increase the speed of my current player anymore than it is. Any workarounds for this? Thanks in advance!
-
Re: A few questions..
1) Try the Draw Line object or Overlay Redux. I think the Draw object should be removed from MMF2.
2) Couldn't tell you without seeing the MFA
-
Re: A few questions..
Jamie, I have uploaded an example of the camera issue here: http://www.clickteam.com/epicenter/ubbthreads.php?ubb=showflat&Number=166727&#Post166 727
-
Re: A few questions..
1. draw the one pixel out as an active
2. when user repeat clicks, create active at xmouse/ymouse and set alt value A to 1
3. when user repeat clicks and alt value A equals 1, always, set XScale of active to Distance between active orgin and mouse coordinates. (Advance direction object)
4. always when alt value A equals 1, set angle of current active to direction between active and mouse (Advance direction object)
5. when user DOES NOT (negate) repeat click, set alt value A of active to 0
If you do this correctly, it should create the line where you click and stretch it out to your mouse. Then when you let go it will stop. The alterable value makes sure that only the line that you just created is the only one that is being stretched/changing it's angle.