a small series of questions

For questions about using Classic.

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

Post » Sat Dec 22, 2007 3:05 am

no, there is no zoom for the layout screen, and besides, zooming would make pixel alignment difficult.
B
4
S
2
G
5
Posts: 149
Reputation: 2,025

Post » Sat Dec 22, 2007 5:05 am

Well, you could align them by setting their positions manually via the properties panel, and reselecting them once they're offscreen with the layers panel.
Moderator
B
88
S
32
G
33
Posts: 3,005
Reputation: 27,432

Post » Sat Dec 22, 2007 12:13 pm

Here's a zip with a couple of examples of how you might do the scrolling:

http://www.mediafire.com/?6txxtf4ymzz

In vertscroll.cap the layout size is 320x4000. The red box is set to "Center view on me" and both the box and the ship are moved 1 pixel up every tick. The star sprite is a 320x1000 repeatable tile, and there are four of them. The star sprites themselves don't move.

In stars.cap the layout size is 320x480. The stars are much smaller tiles and are created at runtime just off the top of the screen and moved down 2 pixels every tick for layer 1 and 1 pixel every tick for layer 2 to get a parallax effect. The ship itself doesn't move (unless the player moves it, of course).

Hope this helps.
Moderator
B
5
S
2
G
6
Posts: 4,348
Reputation: 10,971

Post » Sat Dec 22, 2007 5:34 pm

deadeye is right, you should use a tall layout rather than trying to push things a long way off the layout upwards. Also, DirectSound can play any formats Windows Media Player can, so not just MP3 but if you have the filters for it OGG and such. But remember all your end users would need the Windows Media Player OGG filters if you did something like that.
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,630

Post » Sun Dec 23, 2007 4:48 am

ahaa! thanks guys! - basically the object that does "center view on me" pushes the camera to the right place?, once it's placed , I can use whichever means I need to get everything scrolling!

thankyou so much guys!

re: Mp3 - I thought there were legal issues regarding the use of it in commercial apps without a licence....
B
4
S
2
G
5
Posts: 149
Reputation: 2,025

Post » Sun Dec 23, 2007 3:54 pm

Yeah, if it's commercial I think you do, a quick google crops up http://mp3licensing.com/royalty/ - I think its only once you sell 3000 copies or something though. And after that, 75c per unit isn't a big deal if you're commercial.
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,630

Post » Sun Dec 23, 2007 9:41 pm

Its probably because construct is open source. What they gon' do?

:D

Plus in the end i think windows media player handles the actual playing of the mp3 (not sure about that).
B
2
S
2
G
5
Posts: 448
Reputation: 2,546

Post » Sun Dec 23, 2007 10:42 pm

The Play MP3 action uses Directshow, which is the same thing Windows Media Player uses to play MP3s.
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,630

Previous

Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 9 guests