Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Script Help Get entity speed
MulleDK19 Offline
Senior Member

Posts: 545
Threads: 21
Joined: Jun 2009
Reputation: 10
#11
RE: Get entity speed

I'd just use two areas, in front of whatever you'd need to smash, then measure the time it took to move the rock from one area to the other. Then you can measure the speed.

Or just one area around whatever you'd need to hit. Then use the thing you need to hit as the second "area".

[Image: 16455.png]
(This post was last modified: 02-08-2013, 05:39 PM by MulleDK19.)
02-08-2013, 05:31 PM
Find
FlawlessHappiness Offline
Posting Freak

Posts: 3,980
Threads: 145
Joined: Mar 2012
Reputation: 171
#12
RE: Get entity speed

(02-08-2013, 05:31 PM)MulleDK19 Wrote: Or just one area around whatever you'd need to hit. Then use the thing you need to hit as the second "area".

It would probably not collide with the second entity would it?

Trying is the first step to success.
02-08-2013, 05:43 PM
Find
MulleDK19 Offline
Senior Member

Posts: 545
Threads: 21
Joined: Jun 2009
Reputation: 10
#13
RE: Get entity speed

This is my test:
http://treesoft.dk/misc/SpeedTest.zip

Works pretty well. The speed doesn't need to be measured exactly. This'll work for most cases.

[Image: 16455.png]
(This post was last modified: 02-08-2013, 07:12 PM by MulleDK19.)
02-08-2013, 07:11 PM
Find
FlawlessHappiness Offline
Posting Freak

Posts: 3,980
Threads: 145
Joined: Mar 2012
Reputation: 171
#14
RE: Get entity speed

(02-08-2013, 07:11 PM)MulleDK19 Wrote: This is my test:
http://treesoft.dk/misc/SpeedTest.zip

Works pretty well. The speed doesn't need to be measured exactly. This'll work for most cases.

I like it! Wink Thanks.

You really had fun making that map huh?

I laughed a little bit when the shiny light came from the chest...

Trying is the first step to success.
02-08-2013, 07:33 PM
Find




Users browsing this thread: 1 Guest(s)