I'm new to Construct 2, but have done quite a bit of programming with VBA. I've figured out a lot things by searching the forums and from the manual itself, but I can't seem to find much (anything) on how to plot data in a basic line graph. I've searched for "Graphing", and may need to search for something else. Sorry if I've missed a previous post on this.
I'm working on a Stock Market type simulation game, and would appreciate it if someone could point me in the right direction. I've considered making some custom graphics that I could piece together in a tile set type format, but that seems quite drastic. There must be an easier way.
it is possible to create a line graph (or any curved line, really) by creating a ton of 1x1 sprites that are automatically stretched and angled correctly with a loop
But I think it'll be be wiser if you download the 'canvas' plugin from here
it lets you draw stuff onto an area
I read your post earlier because I'm currently working on a pie chart idea in my head for a game. (by rotating half circles)
Then I just happened across a game example in the arcade with a sample capx for bar charts:
Which links to his Line graph example:
hmm, looking again, his line chart might need some tweaking, it connects the line to the base line between values.
Develop games in your browser. Powerful, performant & highly capable.
Thanks to both of you! I'll have to play around with the plugin to see exactly what it does, and the code from bar-graph-system looks very promising for what I had in mind.
I knew there had to be a better way than with custom sprites!
<img src="smileys/smiley1.gif" border="0" align="middle" />
All the links are dead now.