Expression editor

This forum is currently in read-only mode.
From the Asset Store
Add this awesome sound effects to make your visual novel come to life!
  • The expression editor needs to basically be made nicer with formatting etc.

    Making the first set of brackets you're in bold would be a tremendous help, so like

    sin(420+random(9999*abs(1-sprit|e.x))) if | is the cursor

    colour coding on functions, system expressions, etc

    I'd quite like to be able to define my own functions like faggatron(x)=sin(x*29+x^2)+7*cos(x) and be able to put that into the expression editor, if these functions were saved in your settings and you could use them in everything you made it would be very nice. Maybe if you mouseover it (or something) it replaces it with the actual expression for the function.

    Just because a lot of the maths I'm doing in these expressions is very similar a lot of the time, this would be a nice way to speed things up. (Though I guess it's not a particularly high priority)

  • Python would allow you to define custom functions and reuse them; it's probably a bit complex to do via expressions, though you could use the Function object to achieve it.

    Bolded brackets is a good idea, as are some other formatting additions.

  • I spose it doesnt really matter anyway heh...

    Currently I am not using python at all because it gave me a thousand error messages at runtime a couple of builds ago which put me off initially, and every time I try to add it it gives me another one

    (keep forgetting to bugtracker it - I'll do it in a sec)

    at the start of using it... "Import error: No module named zipfile". Does this happen to everyone or just me? It's literally when I add one line of python.

  • I'd quite like to be able to define my own functions like faggatron(x)=sin(x*29+x^2)+7*cos(x)

    Use the Function Object. You could define Function.MyFunc(x) to mean that.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • oh wow didnt realise you could do that, thats brilliant thanks!

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)