The Daily Click ::. Projects ::. 2.5 Dimensional Platforming useful for BEATemUPS ::. Forum
 

Project: 2.5 Dimensional Platforming useful for BEATemUPS
Project Started: 21st January, 2009 Last Update: 6th October, 2009
Project Owner: MBK Project Members:
Project Type: Experimental Engine for MMF/TGF 1 or 2 Project Progress:


 

Public Forum ::. Spread Value Annoyance
 

Posted By Message

MBK



Registered
  07/06/2007
Points
  1578

VIP Member
19th June, 2009

How can I keep it from switching the spread values around each time I add a new instance to the level editor?
When it changes values on me like that (backwards from how it should work), the position of the walls get messed up each time I add a new one.
Then I have to go back and re-position all of them. This will truly be a royal pain in the arse when it comes time to start making levels.


 
Click Me! http://www.create-games.com/project.asp?view=main&id=1444

http://www.mediafire.com/download.php?aoo1dnnlq5i

Blood of the Ancient One, Seen only as Shadow, Faster than Lightning, Fierce as the Greatest Dragon, Nearly Invisible, Floating in a Dream, Entered through the Demon Door, Destroyer of Evil in a Realm with a Red Sky Scarred, Who could I be ?

maVado



Registered
  25/06/2005
Points
  601

I'm on a Boat
19th June, 2009

You could ID Items on yourself without spread value. Just when you create them set the ID value to whatever you like. If you use Array use another Z layer to store ID's of objects.

X1/Y1 - Z0 = Type of objects
X1/Y1 - Z1 = ID of objects
...

You could also mark your items, so when you create them you set another value to 1, like a flag. Then on the spread you count the number objects with flags on and spread value the count +1 to the new objects.

So Original object 1 to 5 will have 1-5 ID and the new one will have 5 to X. Where X is your current object count

 
n/a

MBK



Registered
  07/06/2007
Points
  1578

VIP Member
19th June, 2009

You've lost me. Thoroughly confused now. That all works for instances of the same object?

Could you make an example?


 
Click Me! http://www.create-games.com/project.asp?view=main&id=1444

http://www.mediafire.com/download.php?aoo1dnnlq5i

Blood of the Ancient One, Seen only as Shadow, Faster than Lightning, Fierce as the Greatest Dragon, Nearly Invisible, Floating in a Dream, Entered through the Demon Door, Destroyer of Evil in a Realm with a Red Sky Scarred, Who could I be ?

maVado



Registered
  25/06/2005
Points
  601

I'm on a Boat
20th June, 2009

I see what I can do, probably on sunday.

 
n/a

bigredron



Registered
  07/04/2007
Points
  299
17th July, 2009

Have a counter called ID.
Whenever you create a new object, add 1 to counter and give that new object the ID of the counter.

 
n/a
   


 



Project Forums


Advertisement

Worth A Click