- Home /
Changing properties of sections of objects and take properties of objects during play?
**O**k, I know the title doesn't explain much, but basically I want to be able to have the land directly beneath my character in a specific radius (2.5d platformer so I really only care about x axis but x and z would be better), whether it encompasses only part of the land-object I am on, or if it will encompass more than one piece of land, I need it to still do so.
**I**ts hard to understand IMO so for example: Cast "ice" at my feet, and it will spread out 5 units in every direction, and won't be hindered if I have two "overlapping" land-objects.
I understand this is difficult, and I have been wracking my brain to think of a sequence of code and objects to do this efficiently, however I find that I am just too inexperienced as of now, so I turn to you all.
**N**ow, just to make it more difficult, I want to be able to "absorb" the areas I am standing on also, I know how to script picking up stuff, however, I don't know how I would have it recognize something like this in this case.
I honestly don't know if I made this easy to understand :/ Any help would be appreciated, thank you :)
Answer by kalvinlyle · Apr 04, 2012 at 10:11 AM
There are two answers to this question:
Sick to game design that you can code.
Separate each item of the design and do them one at a time rather than lumping all the complexities into one script.
There is something to be said for bitting off more than you can chew. If you simplify your design you can probably make something that won't break your skull when you try to problem solve how to create it.
That said, break down your problem into part:
The effect of the spell
The visual effect of the spell
For instance, I would have your spells create objects at your feet that are not visible and that use trigger volumes to affect other characters etc. Then I would look at how to make that effect visible using terrain materials, masks or just floating sprites. Rather than putting ALL the elements of the design into one script try to think of them as a series of scripts that will work together.
Hmm. Yea, I began thinking along the same lines a couple hours ago. I wanted the terrain to be fluid with curves and going up and down rolling hills, but it seems it would be much easier to do flat paths, and "terrace" hills with the fluidity just in the background :(
sucks.. but I guess until I can get better, that's what I gotta do lol
thanks for your answer
Your answer
![](https://koobas.hobune.stream/wayback/20220613065853im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Adding data to a set of transforms 1 Answer
Changing a material with a mouse click 2 Answers
Object from flash to unity 2 Answers
Accessing properties from variable 1 Answer
Spawn object with different material. 0 Answers