Assigning items to buttons Zelda-style

Get help using Construct 2

Post » Fri Feb 07, 2014 2:09 am

For my Zelda game, I'm trying to make it so that when you assign an item that is already assigned to one button to another button, the items switch, as in many real Zelda games (specifically the N64 games). I have a system in place, but it's not working. If anyone can find a solution, here's the .capxdpyellow2014-02-07 02:11:43
Image
B
26
S
6
G
2
Posts: 38
Reputation: 2,427

Post » Sat Feb 08, 2014 8:27 am

- [Cond.] On I pressed, PauseSelect is overlapping BowIcon
-> [Action] IButtonIcon | Set animation frame to 1
-> ...
--> [Cond.] IButtonIcon Animation frame = 1
---> [Action] IButtonIcon | Set AssignedItemSwitch to 1
--> [Cond.] IButtonIcon Animation frame = 2
---> ...
...

IButtonIcon Animation frame is changed to 1 before the value is stored as AssignedItemSwitch.
B
163
S
120
G
9732
Posts: 42
Reputation: 4,875,331

Post » Sat Feb 08, 2014 4:27 pm

Thanks! I'll go try changing that around!
Image
B
26
S
6
G
2
Posts: 38
Reputation: 2,427

Post » Sat Feb 08, 2014 4:35 pm

Hmm... I can't seem to get that working either... Could you post an edited .capx to show me what you mean?
Image
B
26
S
6
G
2
Posts: 38
Reputation: 2,427

Post » Sun Feb 09, 2014 2:07 am

Hi, hope this will help :)
B
163
S
120
G
9732
Posts: 42
Reputation: 4,875,331

Post » Sun Feb 09, 2014 5:04 am

Thanks! It works perfectly!
Image
B
26
S
6
G
2
Posts: 38
Reputation: 2,427


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 20 guests