Submit Your Article


 
RPG Maker

Welcome Guest ( Log In | Register )


  Games Resources RPG Maker VX RPG Maker XP Scripts Tutorials Downloads

 
Reply to this topicStart new topic
> [Eventing]Projectiles!!!, Learn to use projectiles in your game!
Philip
post Dec 16 2010, 12:19 PM
Post #1


Nura (The Jade Ring)
Group Icon

Group: Revolutionary
Posts: 323
Type: Developer
RM Skill: Masterful




TUTORIAL

-- PROJECTILES --


A lot of people have asked how to implement projectiles (ie. arrows, fireballs, random magic glowing balls, ect.) into their games. Well I'm going to teach you how to implement these into your game. My tutorials will be broken down into: Uses for topic, game items needed to create, steps to create.

USES FOR TOPIC

1. Make more of a Zelda type game.
2. Shoot something at player and damage them if it hits them.
3. Player shoots something at (name something) and it does (name something).

GAME ITEMS NEEDED

1. One common event.
2. Projectile event (one on every map if you want it to be something the player can shoot anywhere and the event has to be the same number on each map)
3. In case of a pillar that shoots arrows at player you will need to have one parallel process event that controls timing on the map.
4. Four variables one for the X position of the projectile and one for the Y position of the projectile one for the X position of the player and one for the Y position of the player. If the player is shooting it then an X position of the enemy and Y position of the enemy.
5. Event picture of projectile.

STEPS TO CREATE

1. Make a common event that will control damage. The status of the event should be "none" and obviously there is no switch. In this event do something like impact sound, flash screen red (or something), decrease HP (entire party usually) by whatever you want, exit event processing.

2. One each map place an event that will be used for the projectile. You do not need to give it a picture yet if it's something the player will be shooting. If its a projectile that something is shooting on the map you should give it a picture and select direction fix AND through. If the projectile is being shot by the player its important the the event is the SAME number throughout every map. I usually just place it as the first event on every map and in the corner of the screen or something. If its a projectile that fires from a pillar or something place the event at the location from which it fires.

IMPORTANT -- In either projectile type you will need in the event a parallel process that sets a variable to the X position of the projectile and another variable to the Y position. Directly after this you will need a conditional branch that says if Projectile X equals Player X and then inside that branch another that says if Projectile Y equals Player Y. Inside these branches put call event process and the process will be whatever process you chose for your damage calculation.

If you have more than one projectile you can don't need more variables!!! That's right! Most people don't know this but if you set variable coordinates inside an event to that event's position and then set in another event the same variables to the new event's position the game will use BOTH coordinates for the position. So inside 4 different projectiles you can set the same Projectile X and Y positions and run into them and it will damage you no matter which one you hit!

3. If the projectile is being shot by something in a room at the player you will need a parallel process event that controls the timing of when it fires. In this event you can give it one specific "wait" time or a random time with more elaborate eventing which I won't discuss at this time (maybe later). First thing in the event is a wait command of however many seconds you want. next you'll play a fire sound such as a bow shot or fire sound for a fireball. Finally set move route for projectile to move in whatever direction needed as far as you want it to move. At the end of the event put a set event location (of projectile) back to place it fired from and "Exit Event Processing."

4. The variable have already been discussed but you'll need two for the projectile (one for X position and one for Y) and two variables that determine the player X and Y. If you have the player shooting an arrow at enemies have and X and Y position for enemies too.

5. Find (or make yourself) pictures for the projectile arrow fireball ect.

This should get you started using projectiles. If you are good at eventing you can fire the projectile from a bad dude or from the player. I'll teach you how to do both of these in a later lesson.

That's it for now! Happy gaming!


__________________________
"If your mind goes blank don't forget to turn off the sound." Unknown Author

Phil


Go to the top of the page
 
+Quote Post
   
Unversed Angel
post Dec 16 2010, 12:29 PM
Post #2


Dont Hate Me Cos Im Scene <3
Group Icon

Group: Revolutionary
Posts: 264
Type: Artist
RM Skill: Skilled




This is a very detailed tutorial and im sure many people would find this useful, well done Philip for the great tutorial


__________________________
CLICKY CLICKY <3
BREE!
BREE!
Go to the top of the page
 
+Quote Post
   
Philip
post Dec 16 2010, 10:06 PM
Post #3


Nura (The Jade Ring)
Group Icon

Group: Revolutionary
Posts: 323
Type: Developer
RM Skill: Masterful




Thanks! It's not an easy thing to put in you game but once you get the basics in your game you don't have to do much from map to map. If anyone has any questions feel free! biggrin.gif


__________________________
"If your mind goes blank don't forget to turn off the sound." Unknown Author

Phil


Go to the top of the page
 
+Quote Post
   
lfcscouselad
post Dec 30 2010, 08:30 PM
Post #4


Level 2
Group Icon

Group: Member
Posts: 21
Type: Artist
RM Skill: Beginner




Great tutorial. I've been looking for a way to make enemys in my game shoot projectiles, think i might be able to work it out from this. If I cant work it out I will definetly be keeping an eye out for your next tutorial.
Go to the top of the page
 
+Quote Post
   
Philip
post Jan 1 2011, 11:36 AM
Post #5


Nura (The Jade Ring)
Group Icon

Group: Revolutionary
Posts: 323
Type: Developer
RM Skill: Masterful




QUOTE (lfcscouselad @ Dec 30 2010, 10:30 PM) *
Great tutorial. I've been looking for a way to make enemys in my game shoot projectiles, think i might be able to work it out from this. If I cant work it out I will definetly be keeping an eye out for your next tutorial.


Yes I'm going to post another tutorial with pictures. I did this one on the fly actually LOL!!


__________________________
"If your mind goes blank don't forget to turn off the sound." Unknown Author

Phil


Go to the top of the page
 
+Quote Post
   
Philip
post Jan 11 2011, 08:55 AM
Post #6


Nura (The Jade Ring)
Group Icon

Group: Revolutionary
Posts: 323
Type: Developer
RM Skill: Masterful




Alright I'm in the process of making the next tutorial: Projectiles shot from the player!!!


__________________________
"If your mind goes blank don't forget to turn off the sound." Unknown Author

Phil


Go to the top of the page
 
+Quote Post
   
Knot
post Jan 19 2011, 01:17 PM
Post #7


Level 25
Group Icon

Group: Revolutionary
Posts: 555
Type: Artist
RM Skill: Skilled




Wow, this is a really useful and well constructed totorial. Well done! It's alot simpler than my method so I'm going to start using it. biggrin.gif


__________________________
Unclickable!


QUOTE (X-M-O)
Oh no! I've been quoted again! D=



Other cool stuffs to check out! Even if they arn't mine...





Go to the top of the page
 
+Quote Post
   
Ovan35
post Jan 29 2011, 07:59 PM
Post #8


Level 4
Group Icon

Group: Member
Posts: 51
Type: Developer
RM Skill: Intermediate




I was trying to figure out when you say that the event has to be the same number.If you've already started on your map is there anyway to assign a specific number to an event?I know you can assign names to your events but I'm not sure about the number of the event itself..I might be screwed here.


__________________________
Go to the top of the page
 
+Quote Post
   
LaDestitute
post Jan 29 2011, 08:11 PM
Post #9


Level 18
Group Icon

Group: Revolutionary
Posts: 348
Type: Event Designer
RM Skill: Advanced




Screenshots please?


__________________________
Current Project: Pozzo (arcade game, tentative title)

The following statement is true: The previous statement is false.

Cool links and shit
YouTube Subscribe Spread
Illumination effect tutorial
Writing good dialog tutorial
Color theory tutorial
Breeze Revolution
Tindy's General Mapping Guidelines
Proper story structure tutorial
Go to the top of the page
 
+Quote Post
   
kqurmiz
post Jan 30 2011, 04:06 AM
Post #10


Level 7
Group Icon

Group: Revolutionary
Posts: 108
Type: Developer
RM Skill: Masterful




Could you make a demo please? ;]


__________________________
Shooting ABS:
Click here!
Go to the top of the page
 
+Quote Post
   
Philip
post Feb 8 2011, 09:49 AM
Post #11


Nura (The Jade Ring)
Group Icon

Group: Revolutionary
Posts: 323
Type: Developer
RM Skill: Masterful




Wow! Sorry everybody I've been away from this topic for a bit! Anyways I'm in the process of creating another tutorial only this one will be specifically "Projectiles Shot From Player." And yes the new one will have screenshots. This one didn't have any because I did it in the library at college and didn't have the game in front of me. biggrin.gif

@Ovan35

Um... there IS a way that you can assign it by name and I'll go over that in my next tutorial. It's a bit more complex than just making the event the same on every map but I'll explain it shortly when I post the new tutorial.

@kqurmiz

Hm... I may actually post a demo of the new tutorial.


@Everybody

Be sure to check the new tutorial coming out this week made by "Philip". laugh.gif

This post has been edited by Philip: Feb 8 2011, 09:51 AM


__________________________
"If your mind goes blank don't forget to turn off the sound." Unknown Author

Phil


Go to the top of the page
 
+Quote Post
   
Philip
post Feb 21 2011, 03:20 PM
Post #12


Nura (The Jade Ring)
Group Icon

Group: Revolutionary
Posts: 323
Type: Developer
RM Skill: Masterful




Okay I'm revamping my new tutorial because I found a script that I really enjoy using with projectiles so I may use it in the new tutorial!


__________________________
"If your mind goes blank don't forget to turn off the sound." Unknown Author

Phil


Go to the top of the page
 
+Quote Post
   
Zortik
post May 8 2011, 10:03 PM
Post #13


Level 10
Group Icon

Group: Revolutionary
Posts: 153
Type: Developer
RM Skill: Beginner




QUOTE (Philip @ Feb 21 2011, 06:20 PM) *
Okay I'm revamping my new tutorial because I found a script that I really enjoy using with projectiles so I may use it in the new tutorial!


I'm curious if you're still working on this, and which script you are speaking of. If you still frequent the boards, would you mind filling in the blanks? smile.gif

Edit: I'm sorry about the Necro. I wasn't thinking when I looked at the dates. sad.gif

This post has been edited by Zortik: May 8 2011, 10:07 PM


__________________________
~Zortik

Designer of Classika! A work in progress. Please click the link below to view the topic thread.



Beneath is a wonderful title made by Stern. If you're looking for a superb project to try, please click this link!

An adaption of a novel that LIterarygoth wrote. Loads of custom work and carefully thought out materials.
Go to the top of the page
 
+Quote Post
   

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 18th May 2013 - 07:48 AM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker