Question please help

HI,

I have a store set up and a main character in my game. My question is, If I purchase a new gun in that store, how do I make the character start the game with that new gun?

FACT
(The old gun shoots slowly and the new gun shoots faster.)

Basically, I need to make my character customizable. If you need more info please ask, I will respond immediately.

Thank you for your time.

Comments

  • -Timo--Timo- Member Posts: 2,313
    make an attribute called gun (or something) and start with a value of 2(or something) when you buy the new gun in the shop you change attribute 'gun' to 1
    if attribute 'gun' = 2 change image to gun1
    if attribute 'gun' = 1 change image to gun2
    every attribute 'gun' seconds spawn bullet.
    hope I explained enough :) good luck!
  • bobtheturtlebobtheturtle Member Posts: 226
    So is gun 1 and gun 2, two separate actors?
  • RPRP Member Posts: 1,990
    edited July 2013
    Separate actors, with separate rules/behaviors (if it behaves and looks differently than the other guns in game).

    Essentially swapping actors, but if you intend for the gun image to stay the same, you can just change the behavior of the gun's function using attributes.

  • cBrookscBrooks Member, PRO Posts: 40
    Separate actors, with separate rules/behaviors (if it behaves and looks differently than the other guns in game).

    Essentially swapping actors, but if you intend for the gun image to stay the same, you can just change the behavior of the gun's function using attributes.

  • -Timo--Timo- Member Posts: 2,313
    no, you dont have to use separate actors, if you change the timer to lower number (with spawn actor in it), then bullets spawn faster and you dont need it to be separate... :)
Sign In or Register to comment.