Stock Market type chart ...?

Get help using Construct 2

Post » Sat Feb 04, 2012 6:14 am

Hello,

I'm working on a game and would like to try to show the score in the form of a line chart instead of a boring old horizontal bar . Any ideas on implementing this? I tried adding global variable values independently to the x (time) and y (score) axes of a tiled background, but so far the best result I can get is a block accordioning vertically as it expands across the screen.

I appreciate any help and am really enjoying working with Construct2.

Norm
B
4
G
1
Posts: 7
Reputation: 743

Post » Sat Feb 04, 2012 12:03 pm

here's an example.
type values in the editbox to see the chart updated in realtime

please ask specific questions if there's any part of it you don't understand:
stocklikechart
Spriter Dev
B
87
S
21
G
12
Posts: 3,240
Reputation: 16,461

Post » Sun Feb 05, 2012 6:18 am

Thanks very much for the reply. It's a great example, but I'm still struggling to put it together so that the line appears to grow from left to right as the game is played (connecting y-axis score nodes every two seconds). I'd post the code I put together if the result was even anywhere close.
B
4
G
1
Posts: 7
Reputation: 743

Post » Tue Feb 21, 2012 2:24 pm

Thanks a lot for that chart example, but i can't figure out how to adress one of those text fields with another button. Do they have seperate Instancenames ? are there ways to access one of those textfields by script , without typing the values in manually? thanks a lot
B
1
Posts: 1
Reputation: 227


Return to How do I....?

Who is online

Users browsing this forum: CavalierBubble, Evanetot and 20 guests