weapon scroll

Talk about making games.

weapon scroll

Postby toshiro » Mon Nov 12, 2007 7:17 pm

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
User avatar
toshiro
 
Posts: 22
Joined: Mon Nov 12, 2007 2:22 pm
Score: 0 Give a positive score

Re: weapon scroll

Postby Troodon » Mon Nov 12, 2007 8:17 pm

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. :)
I can't die, I already tried
~on the forums since GE 1.3.3~
User avatar
Troodon
 
Posts: 1539
Joined: Thu Jan 12, 2006 3:29 pm
Location: HELL
Score: 56 Give a positive score

Re: weapon scroll

Postby cyber ruler » Mon Nov 12, 2007 11:33 pm

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
All of my friends tell me programming is my thing. I go to tech school and I'm in I.T., yep, programming all day. My friends ask for help all of the time. But, they tell me my graphics suck... and I have to agree. O, well :/
cyber ruler
 
Posts: 52
Joined: Sat Apr 28, 2007 7:59 pm
Location: Je ne parle englais : /
Score: 0 Give a positive score

Re: weapon scroll

Postby toshiro » Tue Nov 13, 2007 2:05 am

Thnks guys you saved me a night of headaches lol :mrgreen:
Upcoming projects: Twilight sKys 15% done, est. release Jan 1st
User avatar
toshiro
 
Posts: 22
Joined: Mon Nov 12, 2007 2:22 pm
Score: 0 Give a positive score


Return to Game Development

Who is online

Users browsing this forum: No registered users and 1 guest

cron