Hi, I'm having a bit of problems trying to write a script; When a ball in my game passes through a trigger collider I want the ball to get bigger just a little, say '1.3' x bigger. But I can't work out the code, any suggestions? Thanks, Stuart
Are you having trouble with the trigger or with the scaling of the ball? Assuming your trigger works, try setting the transform of the object when it first triggers, using transform.localScale. http://otee.dk/Documentation/ScriptReference/Transform.html#localScale
Yes, I meant scaling of the ball and I have tried what you said but when I do that the thing the ball hits gets bigger not the ball...:? Thanks
Code (csharp): function OnTriggerEnter (other : Collider) { other.transform.localScale *= 1.3; } (untested ) -Jon
See my avatar? I've already made it. http://homepage.mac.com/aaronsullivan/projects/snowball.html I entered it in uDevGames 2004 and it did decently, placing in the top 3 in a couple categories. I am actually planning on making the sequel using Unity. Sadly, the formation-games.com site that the game links to is temporarily offline. My game uses the idea of rolling over snow patches making you larger and it plays into the game eventually. Your description of what you wanted to do sounded suspiciously similar. Feel free to try it out. (there's a download link on that page.)
Hi, If your thinking I'm copying you, I'm not. Like in my game you roll through snow coming out of fake snow makers. Thanks, Stu P.S I wouldn't copy you.
Not to worry, I never suspected you knew anything about my game. Few do. I just wanted to alert you to a possible conflict there.
Snowball rocked. Stu, recommend you rename your game. Even just a little change might suffice, e.g. Snowballin' or Snowballer. Then google it and see if it's been used before for anything notable. Good luck, Matt
Bampf, thanks for that. Stu, since part of our brains are the same wavelength, it never hurts to be cautious: Rollo is the name of the snowball character. I'm curious about your game now, though! I suppose I'll have to wait like everyone else. Can you guys sense that undercurrent of impressive (yet still invisible) Unity games? I can't wait till some of these break out into the public.
The final version of Open Fire should be released soon. I am thinking about maybe doing it shareware now, since I showed it to David at Macworld today and he seemed impressed. If I do that, the release will be delayed shortly