playMaker
Home
Store
Showcase
Tutorials
Forums
Manual
Wiki
About Us
Playmaker Forum
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email
?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Join our
Discord Channel
Home
Help
Search
Login
Register
Playmaker Forum
»
PlayMaker Help & Tips
»
PlayMaker Help
»
Help With Bullet Force [SOLVED]
« previous
next »
Print
Pages: [
1
]
Go Down
Author
Topic: Help With Bullet Force [SOLVED] (Read 4385 times)
Jtheme
Playmaker Newbie
Posts: 19
Help With Bullet Force [SOLVED]
«
on:
December 12, 2012, 03:09:40 PM »
I have a top down 2d in 3d world shooter. a lot like Zombie Estate
http://www.facebook.com/zombieestate
I have an empty Game Object named "Gun" as a child to the main player. But when I shoot the gun the bullets just freeze in air. They only move when I run into them. They have a box collider and a rigidbody attached to the bullets.
«
Last Edit: December 13, 2012, 06:49:40 PM by Jtheme
»
Logged
MajorIdea
Full Member
Posts: 131
Re: Help With Bullet Force
«
Reply #1 on:
December 12, 2012, 03:31:41 PM »
Do you have an action to make them move? Like an AddForce or a translate on the bullet for example. Sort of - Add force (maybe even explosive force, though I never used that one) on the Z (self, not world)
Logged
Jtheme
Playmaker Newbie
Posts: 19
Re: Help With Bullet Force
«
Reply #2 on:
December 12, 2012, 03:47:05 PM »
The only action I have on the bullet itself is a wait then self destruct
Logged
DARK_ETERNAL
Full Member
Posts: 110
Re: Help With Bullet Force
«
Reply #3 on:
December 12, 2012, 04:04:12 PM »
Have you tried applying velocity, instead?
Logged
Check out our new game: Nitro Chimp. Now live in App Store!
Trailer:
//www.youtube.com/watch?v=yxfkGy4N-lQ
Download:
https://itunes.apple.com/app/nitro-chimp/id557150450?l=en&mt=8
Jtheme
Playmaker Newbie
Posts: 19
Re: Help With Bullet Force
«
Reply #4 on:
December 12, 2012, 11:47:23 PM »
I'm fairly new to Unity and Playmaker.
I added a set velocity to the bullet and then to the character that it is coming from.
Maybe I am setting it up all wrong. Any Tips?
I can take more screenshots.
Edit* I used the ThrowGrenade Scene Example to set up my scene.
Edit 2* I imported my bullet prefab into the ThrowGrenade Sample. And it works how it is suppose to :/
Does it just now work because it is connected to a game object that is child of my player?
«
Last Edit: December 12, 2012, 11:55:11 PM by Jtheme
»
Logged
Alex Chouls
Administrator
Hero Member
Posts: 3999
Official Playmaker Support
Re: Help With Bullet Force
«
Reply #5 on:
December 13, 2012, 01:33:10 AM »
You need to tell Add Force what GameObject to apply force to. Right now GameObject is set to none.
First make a GameObject variable in the Variables tab called bullet.
In Create Object, use the Store Object popup to store the created bullet in the bullet variable.
Now set the GameObject in Add Force to the bullet variable.
Logged
Jtheme
Playmaker Newbie
Posts: 19
Re: Help With Bullet Force
«
Reply #6 on:
December 13, 2012, 04:44:21 PM »
Thank you so much for the help! I wasn't storing the bullet variable in the "create object"
Works perfect! Thanks again!
Logged
Print
Pages: [
1
]
Go Up
« previous
next »
Playmaker Forum
»
PlayMaker Help & Tips
»
PlayMaker Help
»
Help With Bullet Force [SOLVED]