How do I do weapon select

Get help using Construct 2

Post » Fri Jun 26, 2015 7:06 pm

Hello
i am actually working on a game where i want to implement weapon select system : if mouse wheel goes up next weapon if down previous weapon
can you help me please?
B
4
S
1
Posts: 22
Reputation: 392

Post » Fri Jun 26, 2015 10:52 pm

You can either have the weapon sprite be filled with different weapons on each frame and simply increment/decrement the frame number when the mouse wheel is moved, or you can line the sprites up in a row on a layer below with just the box open and move the Y-position of the line of sprites up and down.
https://www.ravenheart.ca/home
I don't check the forums much anymore, but I will receive an email for PMs.

"Someone once told me I bite off more than I can chew...

I told them I would rather choke on greatness than nibble on mediocrity."
B
22
S
6
G
1
Posts: 1,418
Reputation: 4,830

Post » Sat Jun 27, 2015 12:40 am

well i have for every weapon a sprite animation for the player
B
4
S
1
Posts: 22
Reputation: 392

Post » Sat Jun 27, 2015 10:36 am

Insert the mouse object into your project, when mouse scrolls up, add 1 to a variable, then if variable = 1 set animation. If variable goes over the amount of weapon animations , set it back to zero, opposite for when the mouse scrolls down, so subtract 1 to a variable. Hope that works for you. (:
B
8
S
2
Posts: 41
Reputation: 643


Return to How do I....?

Who is online

Users browsing this forum: asdtricky, pmerineau, Yarfapet and 13 guests