Charas-Project

  • Home
  • Help
  • Search
  • Calendar
  • Login
  • Register
*
Please login or register.

Login with username, password and session length
 

News:

New forum theme up and running!



  • Charas-Project »
  • Game Creation »
  • Requests »
  • RPG Maker Programming »
  • 3 questions on coding
« previous next »
  • Print
Pages: [1]

Author Topic: 3 questions on coding  (Read 3159 times)

Offline raikor350

  • Member
  • Initiate
  • *
  • Posts: 7
3 questions on coding
« on: February 16, 2009, 07:35:10 PM »
im making a gun battle game and i want to know how to make it to where you hold down the action button to keep shooting (for automatic guns like machine guns and sub machine guns

i also need help on coding the enemies health (its an ABS) ive tried once but it didnt work...

last question how do you set each number key to a different task (for example)

1=equip gun 1
2=equip gun 2
3=equip gun 3
4=equip melee weapon
5=use grenades/med kits
6=skill 1
7=skill 2
8=skill 3
9=skill 4
0=skill 5

(Order changeable in game play)
Logged

Offline TGF

  • fffff I'M BACK
  • Associate
  • *
  • Posts: 104
  • Lazerrr....
Re: 3 questions on coding
« Reply #1 on: February 22, 2009, 09:30:20 PM »
For the different weapons assigned to different keys, I think it needs conditional branches and key inputs.
For example:

Set up a Key Input Processing.
Uncheck everything but the numbers.
Make a variable called "Weapon" (or whatever you want)
Make a conditional branch.
If Variable:(name here) EQUAL to (key number) (0=10 9=19)
THEN
Put in the shooting code.


Sorry if that's kinda hard to understand.
Logged


Quote from: Dragonium
You are already dead.

Offline loftyD

  • Member
  • Associate
  • *
  • Posts: 150
Re: 3 questions on coding
« Reply #2 on: February 23, 2009, 01:18:34 PM »
google a game called Hellucination. Download it and you can base the guns and stuff from it on your game.
Logged

Offline Fisherson

  • Jedi Sentinel of the Charasian Cluster.
  • Royal
  • *
  • Posts: 4,200
  • Just call me Fish.
Re: 3 questions on coding
« Reply #3 on: February 23, 2009, 07:23:37 PM »
Quote from: raikor350 on February 16, 2009, 07:35:10 PM
im making a gun battle game and i want to know how to make it to where you hold down the action button to keep shooting (for automatic guns like machine guns and sub machine guns

I'm trying to figure that one out too. Good luck.
Logged

Offline Rahl

  • Lord Of Gamedwellers
  • Leader
  • *
  • Posts: 2,356
Re: 3 questions on coding
« Reply #4 on: March 01, 2009, 09:00:51 AM »
The only solution I can find to this is to make a button that when you push it it turn on a switch but you have to push it again to turn the switch off. I cannot think of a way to check if you still pushing the button or have stopped pushing it. Heres some screens.




Now burst rounds would seem like a pretty good option.
Logged



  • Print
Pages: [1]
« previous next »
  • Charas-Project »
  • Game Creation »
  • Requests »
  • RPG Maker Programming »
  • 3 questions on coding
 

  • SMF 2.0.10 | SMF © 2015, Simple Machines
  • XHTML
  • 2O11
  • RSS
  • WAP2
  • Simple Machines Forum