Help - Search - Members - Calendar
Full Version: [Event] Multi throwing
RPG RPG Revolution Forums > Scripting > Event Emporium > Eventing Tutorials
Rukiri
Introduction

This is a simple Event-Script that will allow your character to throw multiple projectiles on the game map


Compatibility
This should work on every map, the variables are not global so this event needs to be declared on every map that you can fight on.

Event Script
<div style="margin:20px; margin-top:5px"><div style="margin-bottom:2px">[Show/Hide] script</div><div style="margin: 0px; padding: 6px; border: 1px inset;"><div style="display: none;">

</div></div></div>
stripe103
Can you provide a demo or something?
Rukiri
Yea, I'll do that once I get the "projectiles" working with this event.

This Event-Script is for controlling the sprites, where the comment says call ki-blast that's where your projectile code will be.

Here's what the script does.


When you press "A"("X") button on VX, it will start with frame 0, then 20 frames later go to frame 1. If you continuously press "A" the last 2 screens will repeat.

Great for knife throwing.
stripe103
So, it isn't completed yet?
Rukiri
It's done, just create 4 projectile events, if the switch for projectile 3 is one(if you're constantly repeating) turn on and move the 4th projectile to the hero.

if the switch is not on, just let projectile 1 take it's course.

I'd recommend using Animations for on screen as it'll be a bit bugged because if you're switching to 3-4 different frames and constantly hitting the "A" button.

With Animations it removes the bug and it's pretty much exactly like the GBA games. Just make sure when it hits "Collision" blocks to show the collision animation(instead of the projectile animation)

If you're going to have large maps just have the collision code for just collision blocks so there's no lag in game.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2013 Invision Power Services, Inc.