Loop Trouble

Get help using Construct 2

Post » Thu Feb 13, 2014 3:58 pm

ahhh thats cool but very confusing i dont quite understand the code but tyvm for taking your time to help ill keep hold of it :)
B
16
S
5
Posts: 139
Reputation: 1,652

Post » Thu Feb 13, 2014 5:41 pm

Here is an explanation :)

1. When you press the button, it will reset the 3 variables that holds the photos. To make sure that they don't hold photos already. Also I destroy all PhotoPlaceholder objects, as I create 3 new ones that should hold the photos that are displayed on the screen. This is to clean up so there are not several objects overlapping each other.

2. Since I just destroyed all PlaceHolders I need something to copy the frames from, so I make 1 PlaceHolder to copy from.

3. Then I select how many photos should be displayed, 1 to 3, for each of these, it will check to see if there are already a photo stored in the photo variable if that's the case it will check the next variable and so on.

4. Then it check each variable to see if there are an photo stored. If that's the case it will create an image on the screen. And it will do that for each variable.
B
44
S
11
G
2
Posts: 1,182
Reputation: 6,838

Post » Thu Feb 13, 2014 10:04 pm

I think i get it now the only thing confusing me is that FOR loop i just cant seem to understand it

also im so grateful for all the help i know this may sound rude after all you've done but can i message you if i ever need help?darkrealos2014-02-13 23:02:58
B
16
S
5
Posts: 139
Reputation: 1,652

Post » Fri Feb 14, 2014 2:41 am

Sure, however my visit to the forum changes quite a lot, sometimes I check it a lot and other times not for several weeks so if I don't answer you know why :Dnimos1002014-02-14 02:42:23
B
44
S
11
G
2
Posts: 1,182
Reputation: 6,838

Previous

Return to How do I....?

Who is online

Users browsing this forum: lukewasthefish, marc254, Mayfly, tarek2 and 18 guests