I took this the example I did here:
...and extended it so I can add/destroy nodes and change the values of nodes.
Here is a screenshot of a setup that make the car move forward and rotate.
<img src="http://dl.dropbox.com/u/5426011/examples16/node_screen1.PNG" border="0">
Here's the capx, the art is programmer art so it's very ugly:
Left click to drag nodes and lines.
Right click to open context menu.
What would be the purpose of those ?
The purpose of the setup in the image?
It equates to these 3 actions to move the car:
Set x to car.x + 4*cos(car.angle)
Set y to car.x + 4*sin(car.angle)
Set Angle to car.Angle+1
Or do you mean the purpose of the capx itself?
It's mainly for my own amusement.
R0J0hound, what an amazing piece of work! I can't believe I missed this before.
Your example relates directly to something I'm working on. I hope you don't mind if I shamelessly appropriate your hard work. <img src="smileys/smiley4.gif" border="0" align="middle" />
If that's the case then here is an updated version that is easier on the eyes among many other things:
FYI the nodes evaluate somewhat like a circuit so values can take time to move through the nodes.
What's your project about?
Develop games in your browser. Powerful, performant & highly capable.
Too bad we can't save to xml. Seems that would be perfect for a save state.