×

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
  • /
  • [Script] Graph
[Script] Graph
Fierywarpath
« Citoyen »
1403860740000
    • Fierywarpath#0000
    • Profil
    • Derniers messages
    • Tribu
#1
  0
Have you ever wanted to plot a graph in transformice but couldn't? Well, you can now do that with this script I made!

http://pastebin.com/tDR6TJ1R

Here's a nice graph of x^2 - 4x + 3 and x/2:
http://i.imgur.com/nxQY0jK.png

To use the script, just change minX and maxX to the range of x values you want. Do the same for minY and maxY. Then, change "return {x^2-4*x+3, x/2}" to return another equation of a graph you want.(Eg, "return {math.sin(x),math.cos(x),math.tan(x)}") After that, run the script and you will see your graph!

You can use the map code @5170868 for a clearer view of your graph.

script link:
http://pastebin.com/tDR6TJ1R

Note:
It may lag a little.

Script update: You can now have multiple equations! They will be drawn in different random colours. You can also click on the graph to see what the graph coordinate is. (coordinate will be rounded to 3 decimal places)

Dernière modification le 1404474480000
Ttrabzonlee
« Citoyen »
1404416940000
    • Ttrabzonlee#0000
    • Profil
    • Derniers messages
#2
  0
what is this???
Fierywarpath
« Citoyen »
1404474840000
    • Fierywarpath#0000
    • Profil
    • Derniers messages
    • Tribu
#3
  0
New update! You can now have multiple equations! They will be drawn in different random colours. You can also click on the graph to see what the graph coordinate is. (coordinate will be rounded to 3 decimal places)

Ttrabzonlee a dit :
what is this???

You basically change some of the script to have your own graph plotted. No knowledge of lua is required to use this script but it's easier if you do. I explained how to use it in the original post but if you need more clarification, you can ask :)

But if you don't know what graphs are, I can't explain it so it will be a pointless script for you :P
  • Forums
  • /
  • Transformice
  • /
  • Modules
  • /
  • [Script] Graph
© Atelier801 2018

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

Version 1.27