Converting from c2 to cc

For questions about using Classic.

Post » Tue Feb 28, 2012 12:29 pm

While waiting for better html5 support I would like to convert a game made in c2 back to cc to make it native.

Is this a possible tasks, what problem I will encounter (missing behaviour for example) my game uses layer rotation, particles and "normal" logic.

Trailer: http://www.youtube.com/watch?v=8zx9_n_acQQ

Are online leaderboards possible with cc?

Thanks!
B
29
S
9
G
6
Posts: 525
Reputation: 8,294

Post » Tue Feb 28, 2012 12:46 pm

Yes its all doable.
Leader boards would be about as complicated as they are in C2, as in there is no pre-made mechanism.
Image Image
B
161
S
48
G
90
Posts: 7,356
Reputation: 66,767

Post » Tue Feb 28, 2012 12:59 pm

Does cc support get/post requests?
B
29
S
9
G
6
Posts: 525
Reputation: 8,294

Post » Tue Feb 28, 2012 1:05 pm

A few plugs deal with that, or make your own.
Image Image
B
161
S
48
G
90
Posts: 7,356
Reputation: 66,767

Post » Tue Feb 28, 2012 1:25 pm

Thanks, so far it's awesome, 10 years ahead of c2!
I'm really amazed, thanks I think I'll hang in your forums a lot..
B
29
S
9
G
6
Posts: 525
Reputation: 8,294

Post » Tue Feb 28, 2012 2:43 pm

Two quick questions:

1) Is there a correspondent expression as c2 choose (chooses between two or more values)?
2) How do I rotate a whole layer? I tried:
-> Key left arrow down :: System set layer angle "Game" to LayerAngle("Game")-(90*TimeDelta) but it doesn't work..

Thanks again
B
29
S
9
G
6
Posts: 525
Reputation: 8,294

Post » Tue Feb 28, 2012 5:37 pm

1) A few examples
{1, 2, 3} at (random(3)+1)
{"spring", "summer", "fall", "winter"} at (random(4)+1)

2) Layer or Layout rotation doesn't work unless the Layout has unbounded scrolling on.
B
79
S
24
G
54
Posts: 4,746
Reputation: 40,755

Post » Wed Feb 29, 2012 1:03 am

Thanks, one last question, is there an equivalent of the pin behaviour?
B
29
S
9
G
6
Posts: 525
Reputation: 8,294

Post » Wed Feb 29, 2012 1:20 am

No, but in some ways its easier to deal with using Containers.
Simply add the object you want "pinned" with the object you want it pinned to.
Then you can either add an always event, or compare a Boolean type variable, and then to choose position, reference the pinned to object and set x, and y offsets.
If you need the angle you can set up an image point, and have it set position to that, or use sin, and cos.
If you're unfamiliar with the trig, I'd suggest an image point.

Here's the link to the wiki on containers.newt2012-02-29 01:23:01
Image Image
B
161
S
48
G
90
Posts: 7,356
Reputation: 66,767

Post » Tue Jan 08, 2013 5:29 am

Hi everyone, I'm right now moving a game from C2 to CC too, and I just wanted to know how could I emulate "local variables" on CC? should I create different private variables that everytick reset back to zero or something like that?... I don't know... can anyone help?

Thanks in advance.
B
43
S
14
G
8
Posts: 47
Reputation: 7,556

Next

Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 7 guests