Team Spartan Cookies & Milk Forums
  • Issue Tracker
  • Donations
  • Search
  • Member List
  • Help

Register

Team Spartan Cookies & Milk Forums Garry's Mod Expression 2 v
« Previous 1 2 3 4 5 … 8 Next »
Way to make setAng slower?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode
Way to make setAng slower?
21-12-2016, 05:06 PM,
#1
udop1 Offline
TSCM Member
***
Posts: 62
Threads: 11
Joined: Dec 2014
Way to make setAng slower?
Is there a way to make the setAng slower so that when I want to make something rotate it rotates slower than 9 million MPH?

[Ancients]SharpOB: Drug Trip
[- A.E.G.I.S -]тѕсм.The17thDoctor: No a trip
[Ancients]SharpOB: Like falling over?
[- A.E.G.I.S -]тѕсм.The17thDoctor: No like voyage
[Ancients]SharpOB: Nobody uses that word
[- A.E.G.I.S -]тѕсм.The17thDoctor: I'm French
Find
Reply
21-12-2016, 05:13 PM,
#2
Skeleton Offline
Cheating Donating Member ( ͡° ͜ʖ ͡°)
****
Posts: 199
Threads: 30
Joined: Nov 2014
RE: Way to make setAng slower?
If I understood correctly your question, you have two ways: stop calling it alot in a short period, so reduce the time you call it.
Or you can keep calling the function like you do, but reduce the amount of angle you change.

[Image: giphy.gif]
Find
Reply
21-12-2016, 05:22 PM,
#3
udop1 Offline
TSCM Member
***
Posts: 62
Threads: 11
Joined: Dec 2014
RE: Way to make setAng slower?
Im not calling it a lot, I dont think. I've only made it that if the button == 1 then setAng(ang(vec(0,90,0)))
if button == 0 then setAng(ang(vec(0,270,0))) but it makes the prop move quickly.
Instead should I just make it move one at a time?

[Ancients]SharpOB: Drug Trip
[- A.E.G.I.S -]тѕсм.The17thDoctor: No a trip
[Ancients]SharpOB: Like falling over?
[- A.E.G.I.S -]тѕсм.The17thDoctor: No like voyage
[Ancients]SharpOB: Nobody uses that word
[- A.E.G.I.S -]тѕсм.The17thDoctor: I'm French
Find
Reply
22-12-2016, 12:42 PM,
#4
Skeleton Offline
Cheating Donating Member ( ͡° ͜ʖ ͡°)
****
Posts: 199
Threads: 30
Joined: Nov 2014
RE: Way to make setAng slower?
Well if it rotates quickly that means that the function is called a lot in a short time. I'm not really familiar with E2 but I presume you use something like runOnTick(1), that makes the E2 runs the code each tick. You can try reducing this number or reduce the number of the angle you are adding.

[Image: giphy.gif]
Find
Reply
22-12-2016, 01:48 PM,
#5
udop1 Offline
TSCM Member
***
Posts: 62
Threads: 11
Joined: Dec 2014
RE: Way to make setAng slower?
It's fine, I've figured it out with some help from Ano.

[Ancients]SharpOB: Drug Trip
[- A.E.G.I.S -]тѕсм.The17thDoctor: No a trip
[Ancients]SharpOB: Like falling over?
[- A.E.G.I.S -]тѕсм.The17thDoctor: No like voyage
[Ancients]SharpOB: Nobody uses that word
[- A.E.G.I.S -]тѕсм.The17thDoctor: I'm French
Find
Reply
« Next Oldest | Next Newest »


  • View a Printable Version
Forum Jump:


Users browsing this thread: 1 Guest(s)
Contact UsTeam Spartan Cookies & MilkReturn to TopLite (Archive) ModeMark all forums readRSS Syndication

Powered By MyBB, © 2002-2026 MyBB Group.