![]() |
this.radius, etc.
Ok I know this is a n00b question, but here goes:
How do you just have something move in a circle repeatedly? I hardly ever need it, but when I do, I get mad that I haven't learned it. I know it uses stuff like this.radius, but I forgot how... |
this.radius is just a made up var..
you dont really need it . I personally use it just to say how far from the player. here is a little code for money that goes in a circle with adding radius(called spiraladd if u notice).. NPC Code: |
Jadis:
NPC Code: |
Quote:
and forgot here is the code NPC Code: |
Thanks!
|
Jadis:
It does not matter |
Quote:
it matters =( |
this.angle=this.angle%6.28
:rolleyes: |
Quote:
but it would be this.angle=(this.angle+.324)%6.28; |
Jadis:
you said .324!!!!!!!!!!!!!!!!! |
.314 or .324 .. who cares =)
|
Quote:
|
| All times are GMT +2. The time now is 11:39 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.