Charas-Project

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

Login with username, password and session length
 

News:

Click here to join us on IRC (#charas on irc.freenode.net)!



  • Charas-Project »
  • Game Creation »
  • Requests »
  • RPG Maker Programming »
  • Shooting objects
« previous next »
  • Print
Pages: [1]

Author Topic: Shooting objects  (Read 1946 times)

Offline Andrew Stockton

  • Member
  • Initiate
  • *
  • Posts: 2
  • I have two eyes and a nose
Shooting objects
« on: June 05, 2006, 08:07:51 PM »
Ok, you know how in some RPG'S, you can get a gun or shoot energy out of your hand or something? I know how to do everything except make it actually hit something. I think it has something to do with variables and the hero's (and enemy's) x and y-coordinate. Does anyone know how to do this?

                               
Logged

Offline ZeroKirbyX

  • has died of dysentery.
  • Sage
  • *
  • Posts: 6,132
  • Boop a Doop a Doop
(No subject)
« Reply #1 on: June 05, 2006, 08:22:47 PM »
Any reson you posted a generated face?
Logged

Offline WarxePB

  • Action Sue
  • Royal
  • *
  • Posts: 3,601
  • What killed the dinosaurs?
    • The Gigaverse
(No subject)
« Reply #2 on: June 05, 2006, 08:29:37 PM »
1. This should probably be in RM Programming.

2. If you want a signature or avatar, click the "Profile" button near the top of this page.

3. Simply put, get the X and Y coordinates of both the monster and the projectile, and use two seperate Conditinoal Branches to compare them. If Monster X and Projectile X equal each other, and Monster Y and Projectile Y equal each other, then the monster is "hit".
Logged
Blog: The Gigaverse
Twitter: Initial Chaos

Offline Razor

  • Staff
  • Sage
  • *
  • Posts: 6,247
  • 2 cool 4 skin
(No subject)
« Reply #3 on: June 05, 2006, 09:48:21 PM »
Moved!
Logged
Always right.

  • Print
Pages: [1]
« previous next »
  • Charas-Project »
  • Game Creation »
  • Requests »
  • RPG Maker Programming »
  • Shooting objects
 

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