Skip to content

Shooting a projectile

Ask for help here ;)

Shooting a projectile

Postby Avascar » 25 Feb 2012, 19:44

NOTE: First post!

OK, so I was trying to create a script, noticing there's some problems.

Whenever I use Instantiate, it creates multiple (about 5) duplications. And since the duplicated objects have rigidbodies wacky things happen. I created a prefab so it'll use instantiate to the prefab, so (Clone)(Clone) objects won't happen (previously had a problem with that).

Problem 1: The projectile won't shoot correctly
Problem 2: Some projectiles are stuck, therefore acts like a wall when the player tries to move
Problem 3: Some projectiles shoots backwards.
Problem 4: Added Destroy after 5 seconds, and got this from the console (where errors and stuff displays):
Destroying assets is not permitted to avoid data loss.
If you really want to remove an asset use DestroyImmediate (theObject, true);
UnityEngine.Object:DestroyImmediate(Object, Boolean)
Antares.Vizio.UnityEngineBlocks.ObjectDestroyImmediateDo:In()
Antares.Vizio.Runtime.Trigger:Invoke()
Antares.Vizio.Runtime.TriggerLink:Invoke()
<WaitForSeconds>d__10:MoveNext()



I haven't used DestroyImmediate yet, though.

One more thing, how can I add ITween support for Antares? (Sorry couldn't find anything)

Any help?
Attachments
Help.png
In case if you need this
Avascar
 
Posts: 3
Joined: 25 Feb 2012, 19:37

Re: Shooting a projectile

Postby Neodrop » 01 Mar 2012, 11:22

Can you share your project? I can't see your problem in this screenshot.
Instantiate, as all other Unity low-level nodes works well always, if you use it correctly ;)

iTween port for Universe, you can find here : itween-t254.html

Also, you can use iTween by Wizards (link one, link two, link three) or your own smart-blocks
User avatar
Neodrop
Администратор
 
Posts: 1068
Joined: 15 Jan 2011, 13:18

Re: Shooting a projectile

Postby Avascar » 11 Mar 2012, 06:40

I sort of started a new project (couldn't even work on it due to a bunch of school work) so I started a simplier and shorter one :P.

And thanks for everything else, really needed ITween!
Avascar
 
Posts: 3
Joined: 25 Feb 2012, 19:37

Re: Shooting a projectile

Postby beddnollop » 15 May 2015, 19:50

What I read I really liked it. Thank you for your information!
beddnollop
 
Posts: 13
Joined: 15 May 2015, 09:33


Return to HELP!!!

Who is online

Registered users: No registered users