Discussions
Activity
Home
›
General Development
›
Unity on OUYA
Sign In
·
Register
Howdy, Stranger!
It looks like you're new here. If you want to get involved, click one of these buttons!
Sign In with OUYA
Register
Sign In with OUYA
Sign In
Register
Categories
Recent Discussions
Activity
Participated
Unanswered
Categories
3.8K
All Categories
54
Announcements
646
Games
92
Bug Reporting - Games
887
General Discussion
1.3K
General Development
29
Adobe Air on OUYA
1
Adventure Game Studio on OUYA
82
Clickteam Fusion on OUYA
0
Cocos2D on OUYA
10
Construct2 on OUYA
9
Corona on OUYA
6
Custom Engine on OUYA
25
GameMaker on OUYA
2
Goo on OUYA
9
HTML5 on OUYA
2
ImpactJS on OUYA
6
Marmalade on OUYA
19
MonoGame on OUYA
9
Unreal on OUYA
1
ShiVa on OUYA
693
Unity on OUYA
1
Wave on OUYA
0
ZGameEditor on OUYA
107
Native Development
442
ODK (OUYA Developer Kit)
340
OUYA Hardware
Collions?? How do you make friggin object collions????
AmazingSparckman
Canada
Posts:
344
Member
July 2013
in
Unity on OUYA
Okay how do you make collisions between two objects.
apparently no one knows this. Searched everywhere and none has a snippet of code.
All unity documentation is garbage. what a waste of time.
Udemy Instructor
https://www.udemy.com/nocode2dgames/
Comments
Shush
Posts:
178
Member
July 2013
There are a LOT of developers using Unity successfully, less posting waaaaaaaaaa's and more reading and research me thinks...
tgraupmann
Posts:
2,869
Administrator, Team OUYA
July 2013
Like this:
http://forums.ouya.tv/discussion/comment/17550#Comment_17550
~Tim Graupmann
OUYA Inc | Android Developer
Skype: tgraupmann_prey
http://github.com/ouya/docs
http://github.com/ouya/ouya-sdk-examples
Check out the latest docs for your game engine:
[setup]
[adobe air]
[android]
[clickteam fusion]
[construct 2]
[corona]
[libGDX]
[game maker]
[html5]
[marmalade]
[monogame]
[unity]
[unreal]
Use caution when setting
[persistent wireless mode]
.
AmazingSparckman
Canada
Posts:
344
Member
July 2013
yeah. I got a couple snipes of code.
I'm translating my old games into unity c#.
Useful snipes of code:
Destroy and object
Change animation
Collision between objects
Play a sound
Create objects
stuff like that.
Udemy Instructor
https://www.udemy.com/nocode2dgames/
tgraupmann
Posts:
2,869
Administrator, Team OUYA
July 2013
Destroy an object:
Object.Destroy(theGameObject);
Change animation, depends on whether it's a traditional animation or mechanim.
Use SKStudio for a traditional animation to make your animation states and then. gameObjection.animation.play("Walk");
For mechanim you use the controller to set variables that your animation runs on rather than setting explicit states.
You have the collision.
Sound is. Add an audio source to your game object and then:
audio.PlayOneShot(theAudioClip);
Create objects.
Object.Instantiate(theObject);
~Tim Graupmann
OUYA Inc | Android Developer
Skype: tgraupmann_prey
http://github.com/ouya/docs
http://github.com/ouya/ouya-sdk-examples
Check out the latest docs for your game engine:
[setup]
[adobe air]
[android]
[clickteam fusion]
[construct 2]
[corona]
[libGDX]
[game maker]
[html5]
[marmalade]
[monogame]
[unity]
[unreal]
Use caution when setting
[persistent wireless mode]
.
AmazingSparckman
Canada
Posts:
344
Member
July 2013
void OnCollisionEnter( Collision col ) {
Destroy( gameObject );
}
This seems to work only if you apply it to the object you want to destroy.
What if you want to say
if
(
object A
collides with
object B
) {
destroy object B
;
}
( this' a repost )
Udemy Instructor
https://www.udemy.com/nocode2dgames/
AmazingSparckman
Canada
Posts:
344
Member
July 2013
Never mind I got it.
Udemy Instructor
https://www.udemy.com/nocode2dgames/
Sign In
or
Register
to comment.
Comments
OUYA Inc | Android Developer
Skype: tgraupmann_prey
http://github.com/ouya/docs
http://github.com/ouya/ouya-sdk-examples
Check out the latest docs for your game engine: [setup] [adobe air] [android] [clickteam fusion] [construct 2] [corona] [libGDX] [game maker] [html5] [marmalade] [monogame] [unity] [unreal]
Use caution when setting [persistent wireless mode].
I'm translating my old games into unity c#.
Useful snipes of code:
Destroy and object
Change animation
Collision between objects
Play a sound
Create objects
stuff like that.
https://www.udemy.com/nocode2dgames/
OUYA Inc | Android Developer
Skype: tgraupmann_prey
http://github.com/ouya/docs
http://github.com/ouya/ouya-sdk-examples
Check out the latest docs for your game engine: [setup] [adobe air] [android] [clickteam fusion] [construct 2] [corona] [libGDX] [game maker] [html5] [marmalade] [monogame] [unity] [unreal]
Use caution when setting [persistent wireless mode].
Destroy( gameObject );
}
This seems to work only if you apply it to the object you want to destroy.
What if you want to say
if( object A collides with object B ) {
destroy object B;
}
( this' a repost )
https://www.udemy.com/nocode2dgames/
https://www.udemy.com/nocode2dgames/