Layout Help

Discussion and feedback on Construct 2

Post » Sun Sep 11, 2011 2:16 pm

I'm having issues transitioning from layout 1 to layout 2. The objects transition as they should but the events in the second layout don't function at all. Could anyone tell me what I may be doing wrong?

Here is the CAPX: Shadowgate CAPX file
B
22
S
9
G
3
Posts: 202
Reputation: 3,645

Post » Sun Sep 11, 2011 2:42 pm

The text object belongs to the layout1. Objects can not yet be global in C2.
You need to create a new text object in your second layout.Kyatric2011-09-11 14:43:52
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 6,998
Reputation: 57,786

Post » Sun Sep 11, 2011 3:05 pm

I added a new text object, edited its instance variables to show the global variable and still nada.
So I even created a new global variable(Message2), updated instance variables and updated all of the event info to match the new global variable specific to the second layout. Still nothing.

CAPX: Shadowgate2 CAPX



B
22
S
9
G
3
Posts: 202
Reputation: 3,645

Post » Sun Sep 11, 2011 4:27 pm

In your event sheet, every tick, "Text" is the object being updated with Message2, not "Text2". You forgot to change it.
You could have kept the global variable "Message" as it is global to the whole project.
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 6,998
Reputation: 57,786

Post » Sun Sep 11, 2011 4:30 pm

Some tips about double quotes: you don't need double quotes around strings in the property grid or event variables. If you type "" in those places, it does not mean an empty string, it means a string with two characters, each a double quote. Leave it literally blank to have an empty string.

"" only means an empty string in the parameters dialog.
Scirra Founder
B
357
S
214
G
72
Posts: 22,946
Reputation: 178,228

Post » Sun Sep 11, 2011 6:22 pm



It worked. Thank you a bunch Kyatric.   

Now to test out creating items, storing them in an inventory, using them to create events by dragging and dropping over other objects and hopefully create an animation effect or two.

Thanks again.

B
22
S
9
G
3
Posts: 202
Reputation: 3,645


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 7 guests