Object creation via function doesn't work

Get help using Construct 2

Post » Tue Jan 13, 2015 11:15 am

I have two layouts. On start of layout, there's a function to create a bunch of objects.
When I run the layout separately, It works fine.
but when I run layout 1, and use "Go to layout" to move to layout 2, the objects aren't created.
What's wrong?

here is my code
https://drive.google.com/file/d/0BxpyqZCtkB4cMEZzZDdNSDlYTjQ/view?usp=sharing
"If you want to move a mountain tomorrow, you should start by lifting stones today."
B
63
S
14
G
2
Posts: 291
Reputation: 6,641

Post » Tue Jan 13, 2015 1:14 pm

Could you save as a single file and share? :)
Bruno

I like to eat, but I'm no cook. Why liking to play games would make you a game designer?
B
16
S
4
G
1
Posts: 435
Reputation: 2,353

Post » Tue Jan 13, 2015 1:21 pm

He has provided a download link to the .capx.
If your vision so exceeds your ability, then look to something closer.
Moderator
B
134
S
30
G
84
Posts: 5,391
Reputation: 58,464

Post » Tue Jan 13, 2015 1:22 pm

Message: Erez is not yet permitted to post plain text URLS (300 rep required). 1 URLS removed. Why?
puntodamar wrote:I have two layouts. On start of layout, there's a function to create a bunch of objects.
When I run the layout separately, It works fine.
but when I run layout 1, and use "Go to layout" to move to layout 2, the objects aren't created.
What's wrong?

here is my code

What is the "Global" property value of these objects? If it's "No", try setting them to "true".
B
5
Posts: 24
Reputation: 280

Post » Tue Jan 13, 2015 1:28 pm

You are using "On loader layout complete" on Event Sheet 2. Use "On start of layout", like Event Sheet 1.
ImageImageImage
B
71
S
21
G
233
Posts: 3,696
Reputation: 130,368

Post » Tue Jan 13, 2015 1:45 pm

@zenox98 no he hasn't it's a project not a capx, lot's of files and folders in drive. You could've checked the link before answering...
Bruno

I like to eat, but I'm no cook. Why liking to play games would make you a game designer?
B
16
S
4
G
1
Posts: 435
Reputation: 2,353

Post » Tue Jan 13, 2015 2:15 pm

brunopalermo wrote:@zenox98 no he hasn't it's a project not a capx, lot's of files and folders in drive. You could've checked the link before answering...


the link IS good, it is just google drive recognising the capx as a zip and so giving a preview of the files, but if you download the file itself with the download button (at the top), it should work (I have seen that before).

Not on c2 so sorry I cannot help on the main issue of this topic.
Game design is all about decomposing the core of your game so it becomes simple instructions.
B
53
S
22
G
18
Posts: 2,122
Reputation: 17,123

Post » Tue Jan 13, 2015 2:38 pm

@brunopalermo
Yes he has - it is a .capx, just look at the header. The filename is 4.capx.
If your vision so exceeds your ability, then look to something closer.
Moderator
B
134
S
30
G
84
Posts: 5,391
Reputation: 58,464

Post » Tue Jan 13, 2015 2:44 pm

Hmmm. ok

And that's why I HATE drive for this kind of stuff... Bah
Bruno

I like to eat, but I'm no cook. Why liking to play games would make you a game designer?
B
16
S
4
G
1
Posts: 435
Reputation: 2,353

Post » Tue Jan 13, 2015 4:46 pm

blackhornet wrote:You are using "On loader layout complete" on Event Sheet 2. Use "On start of layout", like Event Sheet 1.

Yes, I'm aware of that. I was using "On start of layout" before that. Nothing happened.
"If you want to move a mountain tomorrow, you should start by lifting stones today."
B
63
S
14
G
2
Posts: 291
Reputation: 6,641

Next

Return to How do I....?

Who is online

Users browsing this forum: atmas, Bootfit, Freak Workshop and 28 guests