Page 1 of 1

weapon scroll

PostPosted: Mon Nov 12, 2007 7:17 pm
by toshiro
im making a game with an ammo screen and need help getting the pictures for the weapons to scroll across my screen(keydown event) to the left one after the other and when they leave the screen i need them to appear again on the right side and move to the left side again untill the keyup event which will stop the movement and choose the weapon. In case i lost you look at this.if you can help me i would really appricitae it

Image

Re: weapon scroll

PostPosted: Mon Nov 12, 2007 8:17 pm
by Troodon
Well, how advanced are you in coding?
Have you played with animation frames and variables in script editor?

I suggest you to use one actor to do the whole menu. Then just check the frame with script editor and switch the correct variable when the key is pressed. You can ask more specified help if you need. :)

Re: weapon scroll

PostPosted: Mon Nov 12, 2007 11:33 pm
by cyber ruler
haveanimations of each of the four orders you could have them in. Now make a variable or textnumber, but ill be calling it a variable. have create actor set the variable to 0 and the animation to its default. make it so when you keydown or whatever, the variable goes up by one, but if it exeedes 3, it goes to 0. have a draw actor event where when the variable is equal to 0: do first animation, 1:second animation so on up to 3.

then when you have the guy shoot, have it so is the variable is equal to 0: shoot bullet 1, 1: shoot bullet 2 and so on up to 3.

note: the variable, if it's not a textNumber, must be a global intager

Re: weapon scroll

PostPosted: Tue Nov 13, 2007 2:05 am
by toshiro
Thnks guys you saved me a night of headaches lol :mrgreen: