[phpBB Debug] PHP Warning: in file [ROOT]/viewtopic.php on line 1582: number_format() expects parameter 1 to be double, string given
[phpBB Debug] PHP Warning: in file [ROOT]/viewtopic.php on line 1582: number_format() expects parameter 1 to be double, string given
help - Scirra Forums

help

Post your own tutorials, guides and demos.

Post » Wed Apr 30, 2008 11:08 pm

The starting situation is as attached in the .cap

After the layout build up,

i would like to move yellow arrows down,

when they are out of screen,
i would like to move the blue arrows up,

when they are out of screen,
i would like to move green arrows to the left,

when they are out of screen,
i would like to move the purple arrows to the right

plz teach me how, ty
B
2
S
1
Reputation: 400

Post » Thu May 01, 2008 12:06 am

Here's how to do it. The key is the comparison:

CountMatching("Object") = Object.Count

This means all of 'Object' met the conditions, so:

+ Object NOT on screen
+ CountMatching("Object") = Object.Count

means 'None of Object are on screen'.
Scirra Founder
B
359
S
214
G
72
Posts: 22,946
Reputation: 178,478

Post » Thu May 01, 2008 10:30 am

I have no idea where you find the time to do als this.

But that was offtopic.
So.. About 'the first help post"

That countmach trick is COOL !

But i have a question/remark to add.

You did the "instance picking" based on there names, wich i knew was easy. But if i add a destroy thingie, "based on there names" compared with "if they are out of screen/layout", it will destroy the original objects too ? And i cant recreate instances from the orginal objects ne more ?

Im not sure if i understand the general use of "the comparisation". Does it keep "the executor", i mean the "virtual japanees that does all the things" closed up in the event till the comparisation is met ? It acts as "do this action till my comparing returns fals" ?

Its a loop ? Cant you point me to other usefull "if then loops" and "when then loops" that i missed so far? plz ! ?
B
2
S
1
Reputation: 400


Return to Your tutorials & example files

Who is online

Users browsing this forum: No registered users and 0 guests