How do I make a sprite that works like the check button

Get help using Construct 2

Post » Tue Sep 01, 2015 6:45 pm

Hi, i want to make a sprite that works like the check button but i don't want to use the CSS
does anyone knows how to make it? :)
C2 Intermediate Developer
Feel free to contact me
B
7
S
2
Posts: 111
Reputation: 908

Post » Tue Sep 01, 2015 6:56 pm

just add a boolean to that sprite and you will be done.
Image

Image
B
38
S
14
G
7
Posts: 408
Reputation: 8,338

Post » Tue Sep 01, 2015 7:14 pm

..or two frame animation....

CheckBox.capx

Image
Image
B
64
S
23
G
7
Posts: 1,483
Reputation: 10,827

Post » Wed Sep 02, 2015 11:18 am

@korbaach i did that before but it didnt work, and ... how can i make the animation when checked perform any action
C2 Intermediate Developer
Feel free to contact me
B
7
S
2
Posts: 111
Reputation: 908

Post » Wed Sep 02, 2015 11:18 am

@IJCT i will try that now.
C2 Intermediate Developer
Feel free to contact me
B
7
S
2
Posts: 111
Reputation: 908

Post » Wed Sep 02, 2015 11:48 am

@korbaach it worked somehow, but there is a problem....when i check the sprite ... the action dont work! i need a solution for that.
C2 Intermediate Developer
Feel free to contact me
B
7
S
2
Posts: 111
Reputation: 908

Post » Wed Sep 02, 2015 11:55 am

..just compare frames...
frame=0.....Action1
frame=1....Action2

Image
Image
B
64
S
23
G
7
Posts: 1,483
Reputation: 10,827

Post » Wed Sep 02, 2015 12:03 pm

thx it worked.. but there is one more problem, the animation is always checked on start of layout.
i want it to be unchecked
C2 Intermediate Developer
Feel free to contact me
B
7
S
2
Posts: 111
Reputation: 908

Post » Wed Sep 02, 2015 12:16 pm

set animation speed to 0

Image
Image
B
64
S
23
G
7
Posts: 1,483
Reputation: 10,827

Post » Wed Sep 02, 2015 12:18 pm

it worked, thx very much for helping :D
C2 Intermediate Developer
Feel free to contact me
B
7
S
2
Posts: 111
Reputation: 908


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 1 guest