|
Post by shadex on Jun 14, 2017 19:28:24 GMT
Hey guys I'm having issues as well. :/ Everything spawns but when I checked for the projectile spawning it spawns on the corner of my terrain map. I have it setup just like the vid because when i set the same particle ball to spawn as a particle and not projectile it spawns at my players feet. Place the same particle in the projectile slot and it will spawn as the edge of my terrain. Any advice? I'm going to continue to try and fix it, but last night I couldn't understand why it would spawn at two diff places just by switching the object from particle slot to the projectile slot. If you put it in the Particle Slot, it will spawn at the root transform of the player (The feet). The projectile slot spawns where ever MagicSpawn is. Reset your transform to 0, 0, 0, of your projectile and put it in the projectile slot. That should fix it. I left that so that you could spawn the projectile anywhere on the map relative to the player (0, 0, 1 = 1 foot in front of player). For instance you can put an explosion in the projectile slot, give it 0, 0, 10 transform and it will explode 10 feet in front of the player (hence lighting strike)
|
|
|
Post by shadex on Jun 14, 2017 19:44:42 GMT
I have a problem with the Shade's Spell System. My projectile Leaves the point 0 0 0 and not MagicSpawn. Help me pls You provided a lot of info... and it all looks right. I am betting that MagicSpawn is not parented to the player (it should be attached to the player in the hierarchy). Make sure that the blue arrow is facing the direction you want the spells to be cast (the direction the character is looking). My transform for MagicSpawn is (0, 1.375, 0.835) and its parented directly under the player.
|
|
|
Post by G 4 greatness on Jun 14, 2017 20:42:25 GMT
shadex can we see the working bow and arrow? :-) spell system looks great!!! Keep up the good work :D OK :p You can change up the arrow, trail effect and all of that. I figure the shooter is a better place to do the bow and arrow system anyways, but it was super easy to setup and i know a bunch of people wanted something along those lines. can i have this bow and arrow effect and how to set up with arrow
|
|
|
Post by uberwiggett on Jun 14, 2017 23:11:38 GMT
Hey guys' I'll do a video tonight to sgoe how to put it together and see if it helps. The photos above I almost thiught you missed the magic spawner script but I think I see it on the last photo. The magic spawn is set as a child of your player? Also, what version of the template are you running?
Like I said I had that same "spawn from 0 0 0" issue but it was the effect around the hands and not the projectile, and that was in the shooter template 1.1b, my bideo above I think uses melee 2.2a. Will check tonight and do a guide video as to how I got it.
|
|
|
Post by yondaime08 on Jun 15, 2017 2:49:52 GMT
So I reset position transform to 0 again and its not spawning from the spawnpoint at all for any projectile. Its a child of the player. Also the console says error. "Null reference exception: object reference not set to an instance of an object. MagicSystemProjectile.cs:22
|
|
|
Post by uberwiggett on Jun 15, 2017 3:01:29 GMT
Heyyyyy I wonder if the particle effect itself has it's own positional data offset. Check the prefab of the particle effect and make sure it's zeroed out, and then have a look at the settings on the particle script as I believe you can change some of the spawning effects there to make it soawn by world etc. Could that be affecting it? Anyway tonight I will try and replicate the issue or just do another how to video.
|
|
|
Post by shadex on Jun 15, 2017 4:54:39 GMT
OK :p You can change up the arrow, trail effect and all of that. I figure the shooter is a better place to do the bow and arrow system anyways, but it was super easy to setup and i know a bunch of people wanted something along those lines. can i have this bow and arrow effect and how to set up with arrow Yes!!!!!!!11111 Lol! I will try to make some tutorials for Melee (seperate skills, attaching effects to default attacks, physic's Knockback), Magic (distance based AoE, Beams, Multiple Projectile spells (think Meteor) and Summons) and Projectile's such as bow and arrow, shurikens, throwing daggers, etc, when i can. I should also do a simple tutorial on how to get an enemy to cast a projectile, AoE, Shoot arrows, etc). I still haven't had time to make the transformation code, the shield code and the weapon effects code.
|
|
|
Post by shadex on Jun 15, 2017 5:22:29 GMT
So I reset position transform to 0 again and its not spawning from the spawnpoint at all for any projectile. Its a child of the player. Also the console says error. "Null reference exception: object reference not set to an instance of an object. MagicSystemProjectile.cs:22 Line 22 in magic system projectile is a blank line. I think you might of copy and pasted it wrong. Try replacing Magic System Projectile with vProjectile and see if that works. Another thing to try is just to make a cube and set to 0,0,0 in the projectile slot, since it will instantiate the cube either way. Pause the it in play mode, and make sure the cube is spawning where MagicSpawn is. I have a feeling MagicSpawn is behaving strangely. Don't worry we will get to the bottom of it
|
|
|
Post by yondaime08 on Jun 15, 2017 11:37:04 GMT
Sorry meant its line 23 as an error. However i dont think thats the issue cause even with a cube with no projectile script and set to 0 it still spawns at the 0 location on my scene, which happens to be the edge of my terrain.
Its like its not even detecting my spawn point at all. Also when I first created the cube i kept the transform the same. So when it first spawned it spawned the same place I created it. Then i tried it with transform position o,o,o. Its not spawning with my characters location. Its spawning off of my worlds location.... :/
|
|
|
Post by jrackley on Jun 15, 2017 12:22:49 GMT
I have set this up and it works GREAT! However I did have the same problem as a couple people have stated with the spawning projectile coming in from 0 0 0, but resetting the projectile prefabs transform to 0 0 0 as shadex mentioned above fixed this for me. Also the MagicSystemProjectile.cs works fine. here is the settings I have on my projectile prefab for reference. Also I had the null reference error at one point, but that was simply user error and I was literelly missing it in the script component. For an Alpha unfinished version I have to say that this is pretty AWESOME! just be sure to take your time when setting it up to avoid any mistakes. image uploader
|
|
|
Post by yondaime08 on Jun 15, 2017 12:43:57 GMT
I had it reset at the very beginning as 0,0,0. Yes, the prefab one. Again i copied the code as is. Also i even changed my projectile to match yours in the pic. I tried spawning several diff kinds of objects. Some with projectiles and some with not. Its continually spawning anything i put in the projectile slot within 0,0,0 of the world and not at my spawn point location. I have reset the position to 0,0,0 about 30 times through all this. Also the spawn point is a child of my player
|
|
|
Post by shadex on Jun 15, 2017 13:55:35 GMT
I have set this up and it works GREAT! However I did have the same problem as a couple people have stated with the spawning projectile coming in from 0 0 0, but resetting the projectile prefabs transform to 0 0 0 as shadex mentioned above fixed this for me. Also the MagicSystemProjectile.cs works fine. here is the settings I have on my projectile prefab for reference. Also I had the null reference error at one point, but that was simply user error and I was literelly missing it in the script component. For an Alpha unfinished version I have to say that this is pretty AWESOME! just be sure to take your time when setting it up to avoid any mistakes. image uploaderYou might want to uncheck "Always Hit" as it currently doesn't work, and wont get the auto aiming when targeting an enemy (unless your not using lock-on's)
|
|
|
Post by shadex on Jun 15, 2017 14:11:21 GMT
I had it reset at the very beginning as 0,0,0. Yes, the prefab one. Again i copied the code as is. Also i even changed my projectile to match yours in the pic. I tried spawning several diff kinds of objects. Some with projectiles and some with not. Its continually spawning anything i put in the projectile slot within 0,0,0 of the world and not at my spawn point location. I have reset the position to 0,0,0 about 30 times through all this. Also the spawn point is a child of my player I had this problem when i was programing it. It's why i had to put in a simple refrence to magic system projectile, because of how the animator works (it can't take a reference in the scene). The line 23 error is you most likely do not have lock-on setup on the camera. I'll see if i can reproduce. I think the best bet is redo the tutorial from the start at this point, as i am sure its a setup problem. Perhaps try it in the demo scene. This one is puzzling me atm.
|
|
|
Post by jrackley on Jun 15, 2017 15:30:38 GMT
shadex when I get home from work tonight I will see what I can do about adding a "homing" system to the projectile, unless you have already done this?
|
|
|
Post by shadex on Jun 15, 2017 16:43:41 GMT
shadex when I get home from work tonight I will see what I can do about adding a "homing" system to the projectile, unless you have already done this? Well i have the projectile simply facing the target on update atm when (alwayshit == true). eventually i want to give it random movement system so it can act like a sidewinder missile. The hope is to create Magic Missile, by creating multiple projectiles that home in on the player but are not directly ontop of each other. Feel free to expand on it. I'll happily update the scripts. ATM i'm way behind on just about everything, so that would be awesome.
|
|