Sprite bank question

Get help using Construct 2

Post » Sun Sep 16, 2012 6:22 pm

Have a level editor game (Minecraft-Terraria clone, copy and etc.)
I used awesome plugin "Sprite bank"
Everything works cool.
The problem I have, when I save my blocks, and then load them, new blocks go over old blocks.
Is there is a way to destroy old block and right after that load new?

I tried to do like this:

On Load button pressed - > blocks destroy -> system wait 1 sec -> load blocks
But this causes mistake and Java error and etc.

Can somebody know hot to destroy old blocks before new blocks loaded?
B
21
S
4
G
1
Posts: 59
Reputation: 5,122

Post » Sun Sep 16, 2012 9:20 pm

it shouldn't give a java error, i used spritebank and it should be as simple as destroy and load, i did once get a java error but that was because i changed the variables and my old loadstring wasnt correct anymore,

maybe if you post the java error i could see what the issue is, maybe it something not related to destoying but the loading process
ImageImage
B
61
S
19
G
6
Posts: 809
Reputation: 9,028

Post » Mon Sep 17, 2012 12:21 am

Java script error
Uncaught type error: cannot read property: runtime or undefined
http: loccalhost: 5001 / commonace.js line 451
This either the bug Of Constract 2 or a problem in third party plugin
B
21
S
4
G
1
Posts: 59
Reputation: 5,122

Post » Mon Sep 17, 2012 12:25 am

There might be a bug in r103/r103.2 on "destroy" like this.rexrainbow2012-09-17 00:26:20
B
97
S
22
G
178
Posts: 4,118
Reputation: 104,043

Post » Mon Sep 17, 2012 12:31 am

exatly. Is there a chance to avoid this?
B
21
S
4
G
1
Posts: 59
Reputation: 5,122

Post » Mon Sep 17, 2012 12:46 am

@tecbug said he found workaround, or this way.
I had not found the root cause, sorry.rexrainbow2012-09-17 00:46:46
B
97
S
22
G
178
Posts: 4,118
Reputation: 104,043

Post » Mon Sep 17, 2012 1:14 am

Its fine, I got it. I just picked each cubes instead of family group. And it works.
THANKS FOR THIS AWESOME PLUGIN!

"Arrays will go bankrupt!"
"U jelly arrays f..gs? =)))"AlexeyMak2012-09-17 01:21:13
B
21
S
4
G
1
Posts: 59
Reputation: 5,122


Return to How do I....?

Who is online

Users browsing this forum: Televangelist and 25 guests