whats the coding so, that when you touch 1 out of the 2 platforms, it says correct or incorrect depending on what platform you land on and goes onto the next level, if you get the answer correct. please help me, its for an assignment. Thanks SonicBoom84
Offline
Put this script platform 1.
when I receive [levelstart v] if <not <(level) = (something)> > set [answered v] to (0) go to x: (xpositionofsprite) y: (ypositionofsprite) switch to costume (level) wait until < <touching [player v]?> or < (answered?) = (1) > > if <touching [player v]?> set [answered? v] to (1) if < (item (level) of [answers v] ) = [1] > say [Correct!] for (2) secs change [level v] by (1) broadcast [levelstart v] else say [Incorrect!] for (2) secs broadcast [levelstart v] end end endPut this script platform 2.
when I receive [levelstart v] if <not <(level) = (something)> > set [answered v] to (0) go to x: (xpositionofsprite) y: (ypositionofsprite) switch to costume (level) wait until < <touching [player v]?> or < (answered?) = (1) > > if <touching [player v]?> set [answered? v] to (1) if < (item (level) of [answers v] ) = [2] > say [Correct!] for (2) secs change [level v] by (1) broadcast [levelstart v] else say [Incorrect!] for (2) secs broadcast [levelstart v] end end endPut this in the sprite that the player controls.
when I receive [levelstart v] go to x: (whereyouwantittostart) y:(whereyouwantittostart)Basically, you have a lot of costumes for each of the platforms.
Last edited by trinary (2012-03-19 03:59:19)
Offline
thx, i will try it, it should be what i am looking for
Offline
sorry, to say but its not working, i did everything it the pictures said.
Offline