a small series of questions

For questions about using Classic.

Post » Thu Dec 20, 2007 10:17 pm

Hi all - Just started using construct, and am very impressed so far. Thanks so much for making such a cool app.

I have a 3 questions regarding implementation and usage.

1: SCROLLING BACKGROUNDS
I'm trying to set up a large vertically scrolling background made up of large bitmap chunks, however , once I stack a few large images vertically, I cannot scroll the layout screen up to add more bitmap pieces above the others.

It also seems the image size limitation is 2048 high, can this be changed?

so, in short I was wondering if there was a way of either scrolling the layout screen to see everything, or wether there were any other ways of visually placing a complex map of large pieces together.

2: DIRECTSOUND

Can directsound play any other music formats than MP3?

3: UNIFIED SCALING

at present, you can only scale by sprites by pixel, not percentage, could anyone recommend a way or code example of scaling an object evenly in X and y?

Thanks so much for your time.
B
4
S
2
G
5
Posts: 149
Reputation: 2,025

Post » Thu Dec 20, 2007 10:54 pm

with regards to the scrolling, there are two things you must first understand: window size and layout size

in the application properties, you can set the window size
in the layout properties you can set the layout size

so setting a layout size larger than the window size will allow you to scroll the layout provided that you have created events to do so

setting a layout size smaller than the window size will however will display the layout in the top left corner of the window and only objects that are in the layout (even just a tiny bit) will appear in the window, anything else will not display
B
2
S
2
G
5
Posts: 293
Reputation: 2,236

Post » Fri Dec 21, 2007 4:34 am

hi vinny, thnks for the layout tip, howver its still not really working

say my window size (this is the size of the display at runtime, correct?) is 640x480

i create a large object that is 640 wide and 1000 high

then tell this object, every frame to move DOWN 1 pixel, to create a scrolling image that passes through the window.

the 1st thing that is seen appears at the TOP of the layout area, I cant expand the layout UPWARDS to allow me to position more objects..

i could always send you a small.cap so you can see for yourself..

hope that explains the situation better
B
4
S
2
G
5
Posts: 149
Reputation: 2,025

Post » Fri Dec 21, 2007 3:38 pm

what is your layout size?
are you trying to scroll the display or the object?
when you want to expand the layout upwards are you trying to do this in the construct or at runtime?

[color=green:1ug2hssa]application properties[/color:1ug2hssa]
[url:1ug2hssa]http://i163.photobucket.com/albums/t294/vinnyang/appProp.jpg[/url:1ug2hssa]

[color=green:1ug2hssa]layout properties[/color:1ug2hssa]
[url:1ug2hssa]http://i163.photobucket.com/albums/t294/vinnyang/layoutProp.jpg[/url:1ug2hssa]

[color=green:1ug2hssa]actions for display settings[/color:1ug2hssa]
[url:1ug2hssa]http://i163.photobucket.com/albums/t294/vinnyang/display.jpg[/url:1ug2hssa]

if this doesn't help, you can send the cap file to [color=green:1ug2hssa]sensationsoft@gmail.com[/color:1ug2hssa]
B
2
S
2
G
5
Posts: 293
Reputation: 2,236

Post » Fri Dec 21, 2007 5:34 pm

You could position them at runtime or arrange them in the layout editor lower than you want, select them all and move them up. That should work.
Moderator
B
88
S
32
G
33
Posts: 3,005
Reputation: 27,432

Post » Fri Dec 21, 2007 9:49 pm

I thought about this, but arranging them , then moving it back up prevents me from ever editing them again, should I choose to adjust something!
B
4
S
2
G
5
Posts: 149
Reputation: 2,025

Post » Fri Dec 21, 2007 9:55 pm

ok, here's some images that explain whats up.

http://pic16.picturetrail.com/VOL699/25 ... 152139.jpg

http://pic16.picturetrail.com/VOL699/25 ... 152136.jpg

i'm not scrolling the the background to match the player because the background is supposed to scroll independently..

hope this makes things a bit clearer
B
4
S
2
G
5
Posts: 149
Reputation: 2,025

Post » Fri Dec 21, 2007 11:55 pm

Since both images are the same sprite, you can give the sprite a private variable, set it to 1 on the first and 2 on the second. At the start of layout, set their positions, with set y to 0-(sprite.value('variablename')*1000)
Moderator
B
88
S
32
G
33
Posts: 3,005
Reputation: 27,432

Post » Sat Dec 22, 2007 1:32 am

no, that's jus an example, there would be a great many more different images, with overlays and underlays
B
4
S
2
G
5
Posts: 149
Reputation: 2,025

Post » Sat Dec 22, 2007 2:10 am

Try zooming out with the mousewheel. Does that work?
Moderator
B
88
S
32
G
33
Posts: 3,005
Reputation: 27,432

Next

Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 8 guests