|
| 09 Oct 2011 06:53 PM |
Just a post out of curiosity who would like a feature like this.
Note, this is not a real feature, but if enough people want it I'll post in the S&I forum about this.
It's basically TweenPosition, except for bricks.
Example..
workspace.Part:Relocate(Vector3.new(10,30,10), "Linear", Velocity = 5)
That is with the Velocity argument as the 3rd argument. Here's Time as the 3rd argument.
workspace.Part:Relocate(Vector3.new(10,30,10), "Linear", Time = 10)
Time = Amount of seconds that you want it to take Velocity = Speed of which it'll move.
List of MovingStyles here..
http://wiki.roblox.com/index.php/EasingStyle
Support?
-I love music. I play guitar. -I enjoy foruming. -I know multiple programming languages, along with mark-up languages. |
|
|
| Report Abuse |
|
|
SDuke524
|
  |
| Joined: 29 Jul 2008 |
| Total Posts: 6267 |
|
|
| 09 Oct 2011 06:56 PM |
Why would velocity be 5? That doesn't make any since.
Also this is an easy enough feature to make on your own, the big reason why roblox added the tweening events is because they're commonly used features in most graphic design thingys like flash. |
|
|
| Report Abuse |
|
|
|
| 09 Oct 2011 06:58 PM |
No clue, I made it up on the spot. You could make it whatever.
Yes, you could make it easy enough on your own, but most methods would be rather messy. All the ones I can think of either involve inserting a humanoid into the brick, countering it's mass with BodyForce, and then using MoveTo, or a for loop which is still rather messy.
-I love music. I play guitar. -I enjoy foruming. -I know multiple programming languages, along with mark-up languages. |
|
|
| Report Abuse |
|
|
|
| 09 Oct 2011 07:00 PM |
I guess I gave support, but this would defeat the purpose of learning CFraming. It irks me when people don't have to go through the hell I went through.
-I think I'm addicted to stopping and staring at pictures.- |
|
|
| Report Abuse |
|
|
SDuke524
|
  |
| Joined: 29 Jul 2008 |
| Total Posts: 6267 |
|
|
| 09 Oct 2011 07:02 PM |
@dark
no, it would just be basic cframe and vector math...
Also I'm saying if you wanted velocity you couldn't use a number, it would have to be a Vector3. Hence that's what a vector is. |
|
|
| Report Abuse |
|
|
|
| 09 Oct 2011 07:04 PM |
CFraming isn't that hard to learn :o But the only other ways I can think of to do this is a lot more work then simply using a method. With CFraming you could do it like..
local part = Instance.new("Part", workspace) part.Anchored = true for i = 1, 10, .1 do part.CFrame = CFrame.new(0,i,0) wait(.05) end
but that's still messy.
You could also do it with MoveTo and humanoid BUT that's like 10 - 20 lines of work.
-I love music. I play guitar. -I enjoy foruming. -I know multiple programming languages, along with mark-up languages. |
|
|
| Report Abuse |
|
|
|
| 09 Oct 2011 07:05 PM |
@dark Not when you have to learn trigonometry to get to it..
-I think I'm addicted to stopping and staring at pictures.- |
|
|
| Report Abuse |
|
|
|
| 09 Oct 2011 07:06 PM |
I think I'm completely forgotten everything relating to roblox studio >.> My fault, I forgot that it was a Vector3 value. Well anyways..A method would still be easier. And loops tend to lagg.
-I love music. I play guitar. -I enjoy foruming. -I know multiple programming languages, along with mark-up languages. |
|
|
| Report Abuse |
|
|
|
| 09 Oct 2011 07:06 PM |
@Hailey : Haha, true that. With that CFrame you could only move it one way. And I'm too lazy to figure out a equation for it.
-I love music. I play guitar. -I enjoy foruming. -I know multiple programming languages, along with mark-up languages. |
|
|
| Report Abuse |
|
|
|
| 09 Oct 2011 07:07 PM |
@dark tell me how you got the < br > in your siggy
-I think I'm addicted to stopping and staring at pictures.- |
|
|
| Report Abuse |
|
|
SDuke524
|
  |
| Joined: 29 Jul 2008 |
| Total Posts: 6267 |
|
|
| 09 Oct 2011 07:07 PM |
function relocate(part,end,time) local velocity=(part.CFrame.p-end).unit/(time/0.03); for i=1,(time/0.03) do part.CFrame=part.CFrame+velocity; Wait(); end end
--now how hard is that? |
|
|
| Report Abuse |
|
|
|
| 09 Oct 2011 07:07 PM |
| i think that would be a useful feature, but maybe instead of Vector3 it should use CFrame. |
|
|
| Report Abuse |
|
|
|
| 09 Oct 2011 07:08 PM |
@SDuke, there are 10 year olds who know scripting. They wouldn't appreciate that math early in their life o.e
-I love music. I play guitar. -I enjoy foruming. -I know multiple programming languages, along with mark-up languages. |
|
|
| Report Abuse |
|
|
|
| 09 Oct 2011 07:08 PM |
| meh, i take my post back. It would make things too easy... |
|
|
| Report Abuse |
|
|
|
| 09 Oct 2011 07:08 PM |
@darkkiler "10 year olds" I started learning C++ 5 years ago. I'm 13.
-I think I'm addicted to stopping and staring at pictures.- |
|
|
| Report Abuse |
|
|
|
| 09 Oct 2011 07:09 PM |
@Mr, yeah but I was just thinking Vector's would be easier. Maybe it could be a CFrame or Vector3. :o
-I love music. I play guitar. -I enjoy foruming. -I know multiple programming languages, along with mark-up languages. |
|
|
| Report Abuse |
|
|
|
| 09 Oct 2011 07:09 PM |
@Hailey : Well that's pretty damn unnatural o.e Er..Well..I dunno what else to say to that.
-I love music. I play guitar. -I enjoy foruming. -I know multiple programming languages, along with mark-up languages. |
|
|
| Report Abuse |
|
|
| |
|
|
| 09 Oct 2011 07:10 PM |
@dark how is that unnatural? "Anyone can cook."
-I think I'm addicted to stopping and staring at pictures.- |
|
|
| Report Abuse |
|
|
|
| 09 Oct 2011 07:14 PM |
@Hailey I think you're the first person I've ever met who started learning a major programming language at the age of 8.
-I love music. I play guitar. -I enjoy foruming. -I know multiple programming languages, along with mark-up languages. |
|
|
| Report Abuse |
|
|
|
| 09 Oct 2011 07:17 PM |
@dark - I knew C++ and Python at 7.
-Like an __AWESOME__ boss |
|
|
| Report Abuse |
|
|
|
| 09 Oct 2011 07:19 PM |
@electric I didn't have a computer at 7
-I think I'm addicted to stopping and staring at pictures.- |
|
|
| Report Abuse |
|
|
|
| 09 Oct 2011 07:20 PM |
@Hailey - Lawl, I had a computer and my first e.ma...i.l at 5.
-Like an __AWESOME__ boss |
|
|
| Report Abuse |
|
|
|
| 09 Oct 2011 07:21 PM |
@Electric+Hailey
Well, I feel left out. x.x
-I love music. I play guitar. -I enjoy foruming. -I know multiple programming languages, along with mark-up languages. |
|
|
| Report Abuse |
|
|
|
| 09 Oct 2011 07:22 PM |
@dark - Lol. It's always best to learn early. :p
-Like an __AWESOME__ boss |
|
|
| Report Abuse |
|
|