Spread Value Annoyance
Author: | MBK
|
Submitted: | 4th July, 2009
|
Views: | 5313
| Rated: |
|
|
This is an article to build awareness of how Spread Values are rather backward-working when it comes to adding new instances.
The Problem with using Spread Values when building levels is that the first instance number does not stay the first number. Instead, it is given the largest number and every instance after it is given a descending number.
It may not sound like a problem at first, that is until you attempt to build levels with instances of an object. Each time you add a new instance, the values all get re-assigned, which causes all the objects to change position from where they were initially placed if using X positioning code.
Here is an example so you will all understand the backward manner in which Spread Values work:
http://www.mediafire.com/download.php?ndwjg0ngmzm
I need a way to fix this issue so that my platforms will not constantly change places. It's nearly impossible to make a level when every time you place an instance of the object, the other objects get placed somewhere other than where they were. In my 2.5d code I have two stacks of walls (instances), which was a real pain to create because of the problem, but now I wish to add a third stack of wall instances but cannot because the other walls go wacky if I try to add it.
If someone finds the solution, and it works with the 2.5d code, I'll post it here so everyone will know what to do in the future to fix it, and give credit to whosoever finds said solution.
|
|
MBK
Registered 07/06/2007
Points 1578
|