Profile

Cover photo
Richard Plohs
147 followers|11,298 views
AboutPostsPhotosVideos

Stream

Richard Plohs

commented on a video on YouTube.
Shared publicly  - 
 
Kaltes Wasser aus dem See,
ist sehr gut bei Neugierdee.

 ·  Translate
1
Add a comment...

Richard Plohs

Pre-Production Magazine  - 
 
thanksAlot ;) for inviting.
1
Add a comment...

Richard Plohs

Introduce yourself  - 
 
Hi may anyone have quick solution for my problem ^^,

I want to access the BoxCollider of an Children (in my Hierarchy I attached a Cube named "CubeChild" to an Cube named "Cube", both got a BoxCollider).

Cube (BoxCollider is Trigger, enabled = true)
 ╚ CubeChild (BoxCollider is notTrigger, enabled=false)

Cube got the "EnableChildsBoxCollider_Script".js but ↓↓↓
var cubeChildCol : Collider;
var cubeCol : Collider;
function Start () {
    cubeChildCol = gameObject.GetComponentInChildren(BoxCollider);
    cubeCol = gameObject.GetComponent(BoxCollider);
    if(cubeChildCol === cubeCol){Debug.Log("fuck");}
}

Did I sth. wrong with the parenting, I thought it´s just draggin' the Child onto it´s new parent in hierarchy?

would be happy for a short answer
daRich
1
Richard Plohs's profile photoEdward Wong's profile photoAmit Hendin's profile photo
3 comments
 
That us how you do it. But you see the GetComponentInChildren() method only goes to the transform's children and not to its children's children and so fourth. You'll have to run a nested loop in order to get deeper in the heirarcy. The deeper the heirarcy the more nested loops you'll need although I think you can make an algorithem for that. Search binary trees collection and you'll see the solution too
Add a comment...

Richard Plohs

Introduce yourself  - 
 
Hi Guys,
currently i´m programmin' a PacMan-Clone and I want to count the "Dots" left in Game (not eaten jet). 
Thought I could make an Array of all GameObjects with Tag ("Finish") (all Dots are tagged "Finish") -> then get the lenght. 

But it seem not to be possible:
http://docs.unity3d.com/Documentation/ScriptReference/GameObject.FindGameObjectsWithTag.html

If I parse this line:
    var gos : GameObject[];
    gos = GameObject.FindGameObjectsWithTag("Enemy"); 
Console send me Errors.

Can anyone help me?
1
Richard Plohs's profile photoAmit Hendin's profile photo
8 comments
 
I´ve opened another Project and got no Errors with "var gos : GameObject[];"
I got back to my PacMan-Project and  got no Errors with the exact same line of code: var gos : GameObject[];
the Error-Message was like "expectet ; found ["
Add a comment...

Richard Plohs

Shared publicly  - 
 
ich wünsch mir auch so einen ;D
 
Akustischer Adventskalender. Hinter irgendeinem Türchen ist auch etwas von mir.
http://www.erbsenprinz.de/weihnachten.php
 ·  Translate
1
Add a comment...
Have him in circles
147 people
Marina Dötterl's profile photo
Laura Wilhelm's profile photo
Spencer al Bayri's profile photo
Christiane Dettelbacher's profile photo
Marena Seidel's profile photo
Michi Beck's profile photo
Özay Tekin's profile photo
co sinus's profile photo

Richard Plohs

Discussion  - 
 
Have a nice time,
enjoy your live, don´t hate, don´t kill, be honest and honorable. 
I´ll leave this group now, sry thougt of some Thinkers-Content, but i discovered some bastion of facebook-pseudo-philosophers. ;) don´t be haten, you´re all good. but this group doesn´t share the content I was looking for.

yours sincerely
daRich
1
lacey edwards's profile photo
Add a comment...

Richard Plohs

Introduce yourself  - 
 
Hey folks,
if anyone want to checkout my absolute simple games i did since 19.12.2012. I give you the links, may you want to know how i get sth. done, or checkout if i did it the right way :D

1. www.plohs.de/pong-web.html
2. http://plohs.de/CapsuleInvaders.html
3. http://plohs.de/PacMan0.html
and today http://plohs.de/Asteroids0.html

happy gamin'
daRich
1
Nuno Nunes's profile photoRichard Plohs's profile photoAmit Hendin's profile photo
5 comments
 
i watched some video-tutorials first. from "theslayer"-, "tornadotwins"- and somemore-youtube-channel. there i got the undrrstanding how i access gameobjects and their components. when i start coding and scene-upsetting (doin prefabs, materials,...) i don't keep redoing an tutorial, so I stick to docs.unity3d.com - viewing the script-reference. This is, on the long run the faster method, isn't it?
Add a comment...

Richard Plohs

Introduce yourself  - 
 
Hey Dudes,
also new into this stuff. the next month i check out Unity, and try to do some basic games (pong 'n stuff). At first i don´t want to import 3d-Meshes, Animations, etc.
I´ll mostly use the basic Game-Objects and the Basics of the Scriptin API (i stick to the java-style One, not c# n not boo).
May you have some basic syntax-collections for me, so i don´t have to way through that whole API-Ref.-Thing. (mean Operators (+ - * / = %) (& && | ||) is it the same like java) (mean basic vars (int float string boolean)) (mean transform.TransformDirection(Vector3); moving Objects, accessing Collider, call other sripts (is there a namespace or so?))
Thx'n happy Gaming
2
Erwan Bézier's profile photoNasser Davari's profile photoNuno Nunes's profile photo
3 comments
 
Check this discussion if you're looking from somewhere to start : https://plus.google.com/117496182744403407202/posts/FT8n6TPVJqq

Also if you're familiar with Java, you might feel more at ease with c# than with Javascript. And by "might" I mean "most def will".
Add a comment...

Richard Plohs

Shared publicly  - 
 
true story
 
Er hat Recht


1
Add a comment...
People
Have him in circles
147 people
Marina Dötterl's profile photo
Laura Wilhelm's profile photo
Spencer al Bayri's profile photo
Christiane Dettelbacher's profile photo
Marena Seidel's profile photo
Michi Beck's profile photo
Özay Tekin's profile photo
co sinus's profile photo
Basic Information
Gender
Male
Looking for
Friends, Networking
Story
Tagline
Want2Develop: Web / Communication / Education / Culture || Aim: Freedom / Peace / Happyness
Introduction
Ich bin der Rich – das geht schon
Bragging rights
Interested in: Fun, Web, Graphics, Design, Programming, Future, Music, Science, Math, Video, Photography. Want to do: change the world in a positive way, webdevelopment, music, process optimisation
Links