×

Langue

Fermer
Atelier 801
  • Forums
  • Dev Tracker
  • Connexion
    • English Français
      Português do Brasil Español
      Türkçe Polski
      Magyar Română
      العربية Skandinavisk
      Nederlands Deutsch
      Bahasa Indonesia Русский
      中文 Filipino
      Lietuvių kalba 日本語
      Suomi עברית
      Italiano Česky
      Hrvatski Slovensky
      Български Latviešu
      Estonian
  • Langue
  • Forums
  • /
  • Transformice
  • /
  • Modules
  • /
  • Shooting a ball relative to your mouse from where you click
Shooting a ball relative to your mouse from where you click
Niclas
« Citoyen »
1454623860000
    • Niclas#5101
    • Profil
    • Derniers messages
    • Tribu
#1
  0
Hi, I'm Deda and I wrote a script thing that shoots a ball.

-.-* *-.-* *-.-* *-.-* *-.-*-.-*-.-*-.-
link: SHOOT STUFF SCRIPT | raw text
-'-* *-'-* *-'-* *-'-* *-'-*-'-*-'-*-'-

It's very well commented, but I don't really know how to talk math, so it's a bit unexplained.

It makes everyone able to shoot a ball from the position of their mouse and outwards, depending on where you click.
Clicks closer to the mouse produce slower moving balls, clicks farther produce faster moving balls.


You can change the item speed by adjusting the xs, ys values:

Speed values a dit :
xs = xo/10
ys = yo/10

Divide by something smaller to produce GREATER speeds or just MULTIPLY it for super speeds. Test around with it. Dividing by 10 is cool. It's a good speed.

You can also change the item being spawned:

Values a dit :

id = tfm.exec.addShamanObject(6, xco, yco, 0, xs, ys, false)

Change the "6" into something else, like 10 for anvils or whatever.

(oh yeah, here's the one that does the opposite, it aims FOR you: anvil suicide)

Dernière modification le 1454625360000
Allesloua
« Citoyen »
1454625300000
    • Allesloua#0000
    • Profil
    • Derniers messages
    • Tribu
#2
  0
thanks! :)
Antonio
« Sénateur »
1454631240000
    • Antonio#9975
    • Profil
    • Derniers messages
    • Tribu
#3
  0
Luuuuuvvvvv it
Camila_cabello
« Citoyen »
1483417140000
    • Camila_cabello#0000
    • Profil
    • Derniers messages
    • Tribu
#4
  0
The links don't seem to work :(
Slothingtonn
« Citoyen »
1483463580000
    • Slothingtonn#0000
    • Profil
    • Derniers messages
    • Tribu
#5
  0
links don't work
  • Forums
  • /
  • Transformice
  • /
  • Modules
  • /
  • Shooting a ball relative to your mouse from where you click
© Atelier801 2018

Equipe Conditions Générales d'Utilisation Politique de Confidentialité Contact

Version 1.27