.: Rotating MENU (AirScape like)

Get help using Construct 2

Post » Thu Jan 10, 2013 6:00 pm

Hi, people!

Ive read the tutorial of Gravity based platformer/rotating layout(http://www.scirra.com/tutorials/273/how-to-make-a-gravity-based-platformer) but it seems a bit HARD for me to understand and unfortunally the author did not put example capx for download to help us understand the code.

- But what I really want to learn is how to make the rotating MENU "sqiddster" made in AirScape.Its so cool!
I tried to make it but I got stuck!
I also asked the author only the MENU .capx but he cant show me because of his game rights/etc I think so.

PLEASE:
If anyone/PROs can help, please put an AirScape MENU like example .CAPX here for download.
It whould be an AWESOME example for everybody to learn from!!!

Thank you very much!
Leozin

P.S> AirScape: http://www.scirra.com/arcade/games/addicting-rotary-games/848/airscape
B
8
S
2
G
3
Posts: 14
Reputation: 2,637

Post » Thu Jan 10, 2013 9:25 pm

Any PRO to help?
B
8
S
2
G
3
Posts: 14
Reputation: 2,637

Post » Thu Jan 10, 2013 11:45 pm

I had a look earlier but didn't have time to reply. My memory is foggy, so I'll explain best I can... names maybe be wrong but you should still get the idea..

All screens are on one layout. The main one, options and the other - forgot what it was, but let's call it level selection (it probably was). Options screen items are placed at an angle (-90) to the left of main, and level selection screen items are placed at angle 90 to the right of main. When clicking a button to go to either, it looks like a lerp is used to rotate the layout to bring the other "screens" into view. And it just lerps back to the original from the other 2 "screens".

Sorry if I haven't explained properly. I'll try and work up an example, but I had a few drinks earlier so... ;p
B
15
S
5
G
7
Posts: 877
Reputation: 5,650

Post » Thu Jan 10, 2013 11:51 pm

Hey, you should have PM'd me and I would have been happy to help you out!

Basically, everything is on one big layout. There is an object called 'camera' which is invisible and has the scroll-to behavior.

There are objects called camera-zones which are basically big rectangles (same size as window size) that frame every area I want the camera to go to. They can be at any position or angle.

Then when the appropriate button is pressed, I make the camera's x,y, and angle lerp to the x,y, and angle of the appropriate camera zone.

(If you don't know how to lerp, there's an explanation in the FAQ).

Hope I helped!
B
90
S
30
G
24
Posts: 3,189
Reputation: 32,400

Post » Thu Jan 10, 2013 11:52 pm

And who better to explain it than the man himself ;)
B
15
S
5
G
7
Posts: 877
Reputation: 5,650

Post » Fri Jan 11, 2013 4:22 am

[QUOTE=procrastinator] And who better to explain it than the man himself ;)[/QUOTE]



hehehe...

But The Man himself forgot the CAPX again! hehehe...

Cold you please make an example for this?

$10 dollars and a drink for the winner!    
B
8
S
2
G
3
Posts: 14
Reputation: 2,637

Post » Fri Jan 11, 2013 11:31 am

@Leozin, I just remembered...

I made an English presentation a while back using C2, using exactly the same technique.

https://dl.dropbox.com/u/41931267/English%20Justice.capx

Enjoy ;)
B
90
S
30
G
24
Posts: 3,189
Reputation: 32,400

Post » Fri Jan 11, 2013 2:58 pm

A-W-E-S-O-M-E!
Oh GOD! This presentation is INCREDIBLE!
This code is really really good!
Thank you very much @sqiddster for your kindness!
You are a real PRO man!

B
8
S
2
G
3
Posts: 14
Reputation: 2,637

Post » Fri Jan 11, 2013 9:43 pm

Glad it worked out for you!
B
90
S
30
G
24
Posts: 3,189
Reputation: 32,400

Post » Sun Jan 31, 2016 2:14 am

Message: ricardoguedes21 can only post plain text URLS until they have 500 rep. 1 URLS modified. Why?
You can send-me this link: https://dl.dropbox.com/u/41931267/Engli ... stice.capx

Link is broken
B
6
Posts: 20
Reputation: 314

Next

Return to How do I....?

Who is online

Users browsing this forum: Rezzon71, tarek2 and 25 guests