How boolean works

Get help using Construct 2

Post » Sat Sep 19, 2015 10:37 am

How to open newer versions of capx files

unzip the capx and edit the caproj file in a text editor

find where is says (for example)

<saved-with-version>21100</saved-with-version>

and replace with an older number eg

<saved-with-version>17000</saved-with-version>

save and try

Search the forum for more information about opening newer versions in old versions.
August 2015 - I misplaced a lot of links - I will try to find backups and repost. If You find a post that interests please reply to post with @rampackwobble and I will get a nudge!

If you find my posts useful please consider donating something to a local charity or to the http://www.mndassociation.org/
B
64
S
33
G
47
Posts: 1,194
Reputation: 30,832

Post » Sat Sep 19, 2015 11:32 am

how we can unzip capx file
.
or what software will do this



RamPackWobble wrote:How to open newer versions of capx files

unzip the capx and edit the caproj file in a text editor

find where is says (for example)

<saved-with-version>21100</saved-with-version>

and replace with an older number eg

<saved-with-version>17000</saved-with-version>

save and try

Search the forum for more information about opening newer versions in old versions.
Image
B
64
S
39
G
45
Posts: 647
Reputation: 32,204

Post » Sat Sep 19, 2015 11:41 am

I personally use 7zip (http://www.7-zip.org/) but there are quite a few "zip" programs available...
August 2015 - I misplaced a lot of links - I will try to find backups and repost. If You find a post that interests please reply to post with @rampackwobble and I will get a nudge!

If you find my posts useful please consider donating something to a local charity or to the http://www.mndassociation.org/
B
64
S
33
G
47
Posts: 1,194
Reputation: 30,832

Post » Sat Sep 19, 2015 12:17 pm

Message: luckyrawatlucky can only post plain text URLS until they have 500 rep. 1 URLS modified. Why?
Thanks brother ! its working

actually i was never know that these files can be zipped

thanks again for this knowledge


RamPackWobble wrote:I personally use 7zip (http://www.7-zip.org/) but there are quite a few "zip" programs available...
Image
B
64
S
39
G
45
Posts: 647
Reputation: 32,204

Post » Sat Sep 19, 2015 12:23 pm

i look at this one
but i found 1 issues may because i never explained it before
.
actually my motive was
i have one BG selection sprites
and second is player selection sprites
BG has 6 colour in frames
Player have 6 players in frames

and i have buttons of BG & player
click BG i want change come BG sprites
and click Player i want come player sprites

this is the actual i need
Image
B
64
S
39
G
45
Posts: 647
Reputation: 32,204

Post » Sat Sep 19, 2015 4:44 pm

I don't know which logic did you use

event (on object clicked blackButton)
__for each object red
___set position to somewhere outside layout
__for each object black
___set position to somewhere inside layout

and do the opposite for red button
or with one boolean you could do like this

event (on object clicked coloredButton)
_for each coloredSprite
__if (coloredButton.isRed != coloredSprite.isRed)
___set position to somewhere outside layout
__else
___set position to somewhere inside layout

you have to set one colored button to true and the other one false

I have no idea what are you trying to do with this, some people don't like to show their work publicly, I'm not sure whether this forum has a PM function or reach me with skype assaji.tjahjadi
B
10
S
3
Posts: 12
Reputation: 676

Post » Sat Sep 19, 2015 4:52 pm

Some images I've posted in the past, this one isn't boolean, but on a click moves the family of sprites off screen.
You could add a line to do the same to other sprite. Exact same line, as it's a toggle, swapping them back and forth. (this can be used to make a menu full of buttons appear and disappear in one event.)

Image

Or here is a boolean toggle, when the sprite is touched, it flips between frame 0 and 1. (the 1 can be any frame)

Image

When (sprite.animationframe=0) is true, it equals 1, so multiplying 1 by it equals 1, if it's false, it's 0, and multiplying 1 by it is 0.

Or using boolean in the 3rd and last two actions of this game of pong written in two events:

Image

The third action down sets the opacity of the winner declaration, 0 if the score is less than 10, 100% if it's above.
the PaddleAI action sets the direction of the computer's paddle, depending on the Y position of the ball compared to the paddle.
And the last action sets the ball speed ever increasing, unless the score is 10 or over, in which case it sets the speed to 0.
QuickyPong Capx - or play it here.
B
230
S
62
G
33
Posts: 902
Reputation: 40,319

Post » Mon Sep 21, 2015 5:03 am

Message: luckyrawatlucky can only post plain text URLS until they have 500 rep. 1 URLS modified. Why?
https://www.dropbox.com/s/woxx731vwzqud ... .capx?dl=0

in this sample i have shown what i need



dheart88 wrote:I don't know which logic did you use

event (on object clicked blackButton)
__for each object red
___set position to somewhere outside layout
__for each object black
___set position to somewhere inside layout

and do the opposite for red button
or with one boolean you could do like this

event (on object clicked coloredButton)
_for each coloredSprite
__if (coloredButton.isRed != coloredSprite.isRed)
___set position to somewhere outside layout
__else
___set position to somewhere inside layout

you have to set one colored button to true and the other one false

I have no idea what are you trying to do with this, some people don't like to show their work publicly, I'm not sure whether this forum has a PM function or reach me with skype assaji.tjahjadi
Image
B
64
S
39
G
45
Posts: 647
Reputation: 32,204

Post » Mon Sep 21, 2015 3:41 pm

@luckyrawatlucky - please check your link.
August 2015 - I misplaced a lot of links - I will try to find backups and repost. If You find a post that interests please reply to post with @rampackwobble and I will get a nudge!

If you find my posts useful please consider donating something to a local charity or to the http://www.mndassociation.org/
B
64
S
33
G
47
Posts: 1,194
Reputation: 30,832

Post » Tue Sep 22, 2015 4:41 am

Message: luckyrawatlucky can only post plain text URLS until they have 500 rep. 1 URLS modified. Why?
https://www.dropbox.com/s/woxx731vwzqud ... .capx?dl=0


RamPackWobble wrote:@luckyrawatlucky - please check your link.
Image
B
64
S
39
G
45
Posts: 647
Reputation: 32,204

Previous

Return to How do I....?

Who is online

Users browsing this forum: Bilderberg CEO, eochranek, fearfulelephants, Solomon and 18 guests