Oneoxus Posted May 8 Share Posted May 8 Hey guys, i'd like to know if it's possible and how to create a beam system with the projectiles tool . Imagine the Kamehameha from DBZ for example. Link to comment Share on other sites More sharing options...
Seshy Posted May 10 Share Posted May 10 Yes - this is possible.  The trick I had used was the following: 1. Create an animation of the beam extending, see below example image. Notice the large whitespace of the bottom half of the image, this is because the character will be in the center of the image when the animation is played and we want the beam projecting from the character, not from behind him.  2. Create the spell for Kamehameha. The spell must be an event and the event does the following. 2.1. Sets the player variable "In Cast" to True (we need to make sure if the player tries any other action, it is denied. The "In Cast" variable will change to False when finished). 2.2. Hold the player still (we don't want the player moving when the Kamehameha beam animation is playing). 2.3 Set the player sprite to be the image of Goku with his hands out (essentially holding the Kamehameha). 2.4 Play the beam animation 2.5 Set a wait timer until the animation is complete 2.6 Set the sprite back to normal Goku 2.7 Release the player 2.8 Set In Cast to False so that any other action that checks if the In Cast is False will now be successful 3. Create the projectile for Kamehameha. The projectile is independent of animation. The projectile will have no image. In my example, I made 5 projectiles all invisible but you can see when they hit in the video example.  any questions let me know  Embedded Video Link  RaalB and Vio 2 Link to comment Share on other sites More sharing options...
Vio Posted May 10 Share Posted May 10 That above is an option, or you could set the projectile speed really fast and have a beam sprite that looks good, or you could hard code something into the engine Link to comment Share on other sites More sharing options...
Gibier Posted May 10 Share Posted May 10 1 hour ago, Vio said: That above is an option, or you could set the projectile speed really fast and have a beam sprite that looks good, or you could hard code something into the engine  But the last suggestion couldn't be good since he's asking to doing it in the projectile editor ^^ Vio 1 Link to comment Share on other sites More sharing options...
Oneoxus Posted May 10 Author Share Posted May 10 Wahou thanks a lot Seshy for this really good explanation ! I'll try to do this and i'll let you know ! Vio 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now