3D Background/Foreground

For questions about using Classic.

Post » Thu Jun 04, 2009 6:06 am

http://www.youtube.com/watch?v=Qrg-o8FC ... re=related

Bascially, I want to do something like this in the video. 2D Sprites, 3D background. Would I use the 3D Box object?
B
11
S
3
G
8
Posts: 473
Reputation: 4,569

Post » Thu Jun 04, 2009 6:27 am

What part, the battle, or before that?
Either way, you would probably want to use a mesh.
Image Image
B
161
S
48
G
90
Posts: 7,356
Reputation: 66,767

Post » Thu Jun 04, 2009 10:20 am

The battle, but use the mesh object?

One more thing. Since Construct won't even add a counter object and a text blitter object seems far off at this point, how would I show a value using sprites? I know I can use the text object, but I'd rather use graphic numbers. I was told how to do this, but I forgot it.
B
11
S
3
G
8
Posts: 473
Reputation: 4,569

Post » Thu Jun 04, 2009 11:37 am

debug mode?
B
52
S
7
G
6
Posts: 1,945
Reputation: 7,610

Post » Thu Jun 04, 2009 12:39 pm

[quote="Azu":3uoal01p]Since Construct won't even add a counter object[/quote:3uoal01p]

What do you need the counter for? you can just increment PVs to act as counters.
B
5
S
2
G
4
Posts: 632
Reputation: 2,829

Post » Thu Jun 04, 2009 12:51 pm

Use a private variable to store the number.

Use a sprite with 10 animations, each of which represents a number (from 0 to 9). Alternatively, just use 10 sprites, each representing a number. Whatever floats your boat.

For each digit in the variable, display that sprite/animation. You can use text manipulation or math manipulation to read digits.

In this case, we're using math manipulation. Divide by 1000 to get the thousands, 100 to get hundreds etc.; to get hundreds only, substract thousands you got from earlier... example:

Score: 1337

Fifth digit: 1337/10000 rounded down equals 0, so display 0
Fourth digit: (1337 - Fifth digit * 10000) / 1000 rounded down equals 1, so display 1.
Third digit: (1337 - Fourth digit * 1000 - fifth digit * 10000)/100 rounded down equals 3, so display 3.
...
And so on till the first digit. I'm sure there is a simpler way to get digits.
B
62
S
21
G
12
Posts: 1,910
Reputation: 13,155

Post » Thu Jun 04, 2009 2:01 pm

[quote="newt":1gfs3wmc]Either way, you would probably want to use a mesh.[/quote:1gfs3wmc]
It actually looks like simple parallax scrolling (change the layer scroll rates). Also you don't need a mesh at all if it's just a flat object in the distance - just use Z elevation.
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,600

Post » Fri Jun 05, 2009 2:03 am

[quote="Aeal5566":nymw7dq4][quote="Azu":nymw7dq4]Since Construct won't even add a counter object[/quote:nymw7dq4]

What do you need the counter for? you can just increment PVs to act as counters.[/quote:nymw7dq4]
graphic numbers
B
11
S
3
G
8
Posts: 473
Reputation: 4,569

Post » Fri Jun 05, 2009 2:16 am

[quote="Azu":1s27d7iu][quote="Aeal5566":1s27d7iu][quote="Azu":1s27d7iu]Since Construct won't even add a counter object[/quote:1s27d7iu]

What do you need the counter for? you can just increment PVs to act as counters.[/quote:1s27d7iu]
graphic numbers[/quote:1s27d7iu]

Yes but isnt that what a text blitter is for?
B
5
S
2
G
4
Posts: 632
Reputation: 2,829

Post » Fri Jun 05, 2009 5:10 am

You can use Bitmap fonts.
B
11
S
3
G
8
Posts: 473
Reputation: 4,569

Next

Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 6 guests