![]() |
|
10-07-2012
|
166 | |
|
Registered User
Join Date: Aug 2011
Location: En La Caja
Posts: 1,679
|
|
|
|
10-16-2012
|
167 |
|
299,792,458 m/s
Join Date: Mar 2012
Location: Lebanon
Posts: 3,581
|
After training a bit with vecx and vecy, still understand nothing :/ I'd really appreciate someone teaching it for me more in an "easy" way. I'm trying to start making the melee system for the server, but it's really annoying setting coordinates so I thought vecx and vecy would help.
|
|
10-16-2012
|
168 | |
|
Registered User
Join Date: Aug 2011
Location: En La Caja
Posts: 1,679
|
|
|
|
10-16-2012
|
169 |
|
Registered User
Join Date: Sep 2011
Location: Germany
Posts: 6,122
|
|
|
10-16-2012
|
170 |
|
299,792,458 m/s
Join Date: Mar 2012
Location: Lebanon
Posts: 3,581
|
I still don't see how to use it, or rather where to use it. Is it like player.dir? Why not just set player.dir = 1;?
|
|
10-16-2012
|
171 | |
|
Registered User
Join Date: Sep 2011
Location: Germany
Posts: 6,122
|
PHP Code:
if the players dir is 1: x will lower by -1, y will raise by 0 (player walks to the left) if the players dir is 2: x will raise by 0, y will raise by 1 (player walks down) if the players dir is 3: x will raise by 1, y will raise by 0 (player walks to the right) |
|
|
10-17-2012
|
172 | |
|
299,792,458 m/s
Join Date: Mar 2012
Location: Lebanon
Posts: 3,581
|
|
|
|
10-17-2012
|
173 |
|
Registered User
Join Date: Sep 2011
Location: Germany
Posts: 6,122
|
|
|
10-17-2012
|
174 |
|
299,792,458 m/s
Join Date: Mar 2012
Location: Lebanon
Posts: 3,581
|
Not sure if there is a custom command for that, but, can I set a limit for a bullet using shoot() params? Like I want it to end at 2 tiles infront of the player, and make the bullet invisible this way it would be easier to make it similar to my gun system.
|
|
10-17-2012
|
175 |
|
Times Change
Join Date: Feb 2012
Location: Cairo, Egypt
Posts: 1,872
|
I really want to learn to script but It's so confusing, I just can't focus.
|
|
10-17-2012
|
176 | |
|
Registered User
Join Date: Sep 2011
Location: Germany
Posts: 6,122
|
|
|
|
11-23-2012
|
177 | |
|
scripture
Join Date: Jul 2012
Location: United Kingdom
Posts: 237
|
i will also be thanking you john and emera after teaching me gs2 like you currently are! ill create my own thread and do like john :3 |
|
|
11-23-2012
|
178 |
|
Registered User
Join Date: Sep 2011
Location: Germany
Posts: 6,122
|
|
|
11-29-2012
|
179 |
|
scripture
Join Date: Jul 2012
Location: United Kingdom
Posts: 237
|
nuuu callimuc u and emera help i was just commenting on the thread! i said "u john and emera" i meant u callimuc and emera, u know i always respect every one thats nice/kind! |
|
02-06-2013
|
180 |
|
Registered User
Join Date: Aug 2011
Location: En La Caja
Posts: 1,679
|
Math.sin(float) - returns float Math.cos(float) - returns float Math.tan(float) - returns float You should add these to the calculator
|