Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by Dreoh · Apr 04, 2012 at 10:02 AM · objectchangepropertiesmagicland

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 :)

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image
0
Best Answer

Answer by kalvinlyle · Apr 04, 2012 at 10:11 AM

There are two answers to this question:

  1. Sick to game design that you can code.

  2. 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.

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Dreoh · Apr 04, 2012 at 07:24 PM 0
Share

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

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

4 People are following this question.

avatar image avatar image avatar image avatar image

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


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges