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


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Work in progress Flawless' thread of inspiration
FlawlessHappiness Offline
Posting Freak

Posts: 3,980
Threads: 145
Joined: Mar 2012
Reputation: 171
#13
RE: Flawless' thread of inspiration

(05-04-2015, 05:49 PM)TheDoctorPoo Wrote: Can you explain this script in grater detail? Confused

I can.

In short, you specify and entity which will be moved a tiny distance per frequency.

If the frequency and the space is defined to 0.01, the object will move a distance of 0.01, each 0.01 second.
It will keep doing this, until the destination is reached.

It knows when the destination is reached, because every time it repeats, a variable is getting smaller and smaller, and at the 1/100 of a second it reaches 0 or lower, it will stop.

Then a function calls, to say that the entity has arrived.


Did that make sense?

Trying is the first step to success.
05-04-2015, 06:18 PM
Find


Messages In This Thread
RE: Flawless' thread of inspiration - by A.M Team - 05-04-2015, 05:49 PM
RE: Flawless' thread of inspiration - by FlawlessHappiness - 05-04-2015, 06:18 PM
RE: Flawless' thread of inspiration - by A.M Team - 05-04-2015, 06:34 PM
RE: Flawless' thread of inspiration - by Mudbill - 05-04-2015, 05:41 PM



Users browsing this thread: 1 Guest(s)