Node based expression editor

Show us your completed creations made in Construct 2

Post » Tue Dec 04, 2012 5:58 am

I took this the example I did here:
http://www.scirra.com/forum/how-would-i-go-about-drawing-arrows-between-boxes_topic60508_post371509.html?KW=#371509
...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.


Here's the capx, the art is programmer art so it's very ugly:
http://dl.dropbox.com/u/5426011/examples16/nodes2.capx
Left click to drag nodes and lines.
Right click to open context menu.R0J0hound2012-12-04 06:00:39
B
79
S
24
G
54
Posts: 4,754
Reputation: 40,771

Post » Tue Dec 04, 2012 11:59 am

What would be the purpose of those ?
B
35
S
16
G
16
Posts: 2,222
Reputation: 16,589

Post » Tue Dec 04, 2012 5:14 pm

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.
B
79
S
24
G
54
Posts: 4,754
Reputation: 40,771

Post » Mon Feb 11, 2013 9:32 pm

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.
Don't see the fnords and they won't eat you!
B
75
S
16
G
12
Posts: 322
Reputation: 11,608

Post » Tue Feb 12, 2013 6:14 am

If that's the case then here is an updated version that is easier on the eyes among many other things:
http://dl.dropbox.com/u/5426011/examples16/nodes3.capx

FYI the nodes evaluate somewhat like a circuit so values can take time to move through the nodes.

What's your project about?
B
79
S
24
G
54
Posts: 4,754
Reputation: 40,771

Post » Tue Feb 12, 2013 9:09 am

R0johound..... this.is.so.cool.
B
19
S
3
G
4
Posts: 79
Reputation: 3,711

Post » Tue Feb 12, 2013 11:23 am

Thanks R0J0!
Don't see the fnords and they won't eat you!
B
75
S
16
G
12
Posts: 322
Reputation: 11,608

Post » Tue Feb 12, 2013 2:47 pm

Awesome example.

Too bad we can't save to xml. Seems that would be perfect for a save state.
Image Image
B
161
S
48
G
91
Posts: 7,359
Reputation: 67,273


Return to Completed Creations

Who is online

Users browsing this forum: No registered users and 6 guests