The Daily Click ::. Forums ::. Klik Coding Help ::. Spread Value Selection How to get more specific control?
 

Post Reply  Post Oekaki 
 

Posted By Message

MBK



Registered
  07/06/2007
Points
  1578

VIP Member
6th July, 2009 at 02:38:14 -

Umm .. ok ... well, that's interesting, but it still isn't completely solved.
I think you're on the right track though.
You see, it's not that the walls don't line up on the Y axis, as that's a non-issue, although your tackling it in such a manner has given rise to an idea slowly forming in my thick headed consciousness. You've got the groundwork laid out, it just has to be finished.

Let me explain. You see, what I need is for the walls to be able to stack upon one another in between the platform top (green platform) and the platform bottom (blue shadow). Your route of exploration towards the end solution has uncovered something that I had missed. What I now need is a formula to set walls upon eachother on the Y-axis up to a cut off point (where the top green platform is), but for more than one set of platforms and shadows. ... Is it even possible? ... hmm ... either that or just have to keep trying til I figure out a different way. It might work though, but how can I calculate such a thing? I'd need distance between the platform top and the shadow, the height of the walls at the intersecting overlap point, and then set the number of walls to align based upon that ... plus I'd need some sort of a division of the number of wall placements within that area between one platform top and bottom at a time only.

Confused yet? .. I certainly am!

If you can solve this, I'll hand over all my points to you (59. Edit: 598 points
And I'll owe you more points when I get them. Truly, this is a mind-bender for sure.


Edited by MBK

 
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 ?

GamesterXIII



Registered
  04/12/2008
Points
  1110

I am an April Fool
6th July, 2009 at 03:24:53 -

can you explain to me why you can't do it manually? It might help to chat over a messenger. . . do you have aim/yahoo/msn etc?

 
n/a

MBK



Registered
  07/06/2007
Points
  1578

VIP Member
6th July, 2009 at 13:06:03 -

Well, I believe the solution is one of a mathematical nature, and to be quite honest, I'm not so good at anything more complicated than multiplication.

Lets say there's 3 rows of oranges (19 oranges total), and in the first row there are 4 oranges, in the second row there are 6 oranges, and in the third row there are 9 oranges. What is the mathematical formula which will split them in such a manner? And once that is found, how can that formula become alterable so that any amount of oranges can be put in whatever row you want without spilling the oranges from one row into another? Do you see what I'm saying?

I believe that changing the number which it is spread by (or maybe even spreading by a variable ever changeable number) could have something to do with getting it to work, but I have no clue how to get it all working mathematically, let alone implementing it into the code.

I have MSN messenger, for hotmail ... But I'm probably going to need someone who's heavily into math to help me.
Do you know much about mathematics? I vaguely remember something similar to this problem in an Algebra class when I was in school, but I don't know what the term for those kind of problems is or how they were solved.


 
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 ?

GamesterXIII



Registered
  04/12/2008
Points
  1110

I am an April Fool
6th July, 2009 at 15:19:03 -

I still don't understand why you cant place the walls manually with the grid.

Do you mean rows or columns?
------ row

|
|
|
column

If i am comprehending what you are saying, I can probably figure it out without the math being too difficult. I am no mathematician, but I am good at figuring shit out in MMF.

I'm working on an example right now, but I have to go to my shop soon. I'll try to work on it a bit there.

 
n/a

MBK



Registered
  07/06/2007
Points
  1578

VIP Member
6th July, 2009 at 21:09:02 -

I mean a vertical row, so I guess column ... Why would I want to stack the walls horizontally for each shadow? .. think about it .. lol.
Row isn't necessarily horizontal btw, as it just means more than one item placed adjacent to one another in a line, and could be upon either the vertical or the horizontal either one, although it apparently seems to be thought of as horizontal more often than vertical for some reason ... column on the other hand is always of a vertical nature so I guess I should use that word rather than row, but row just sounds better to me <shrugs>.

You didn't test adding more than one wall stacked vertically. I know that because of the example. This is why you don't get my meaning. Try adding more walls on the vertical in the frame editor ok? .. then try adding walls vertically for each shadow. Do you see what happens with the code you changed? .. the wall instances all line up at the base of the shadow instead of stacking upon one another, and that simply will not do. Now do you see what happens with the original code if you add walls vertically? .. all the walls change places with one another and end up not lining up on the Y atop eachother above the correct shadow.

It's more complex than it seems. I'm usually pretty good at getting past TGF1 limits myself, (just take a look at the other parts of that code, all of my making), but I'm not so sure that this one can be solved without the magic of a complex Mathematical formula.
If you can figure it out though, then I'll be beyond amazed. I'm about to give up on it and just put all my shadows and platforms in the level first, then stack one wall on each from left to right, then do the same for the second wall to be stacked upon the other, then the same for the third and so on (because that is the ONLY way it will line them up right now) ... I have to follow an extremely ridiculous order of placement which makes everything much more time consuming. But, yea, if there's a way to avoid having to do that, well, that's what this whole thing is about. If only someone knew of a way ... do you know of any math sites where they help with problems like this? I'm gonna try hunting for math sites next.


 
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 ?

GamesterXIII



Registered
  04/12/2008
Points
  1110

I am an April Fool
8th July, 2009 at 01:11:33 -

I actually did test that. I knew that my code wouldn't allow for more than one wall per shadow. I thought I mentioned that - I just fixed the fact that you had to manually place the first wall in order for things to work.

I honestly do not see the benefit in doing this (considering how much of a pain it is and how long its taking) over manually placing the objects.

Haven't had time to look at it anymore though - I've been working on my own crap and I've been too busy with actual work as well.

Oh yea also.

Do the objects absolutely HAVE to have an ID? Or do they just have to align correctly.

If they don't need an actual ID, I think I have a method of pulling it off with a top platform, a bottom platform (shadow whatever), and center pieces.

If the values of the top and bottom platforms are equal, the distance is read between them then divided by the height of the center pieces. Then center pieces are placed every x amount of pixels. X being the height of the pieces. I'll post an example later so you can check it out.

Edited by GamesterXIII

 
n/a

GamesterXIII



Registered
  04/12/2008
Points
  1110

I am an April Fool
8th July, 2009 at 02:13:16 -

Heres the example. Sorry for the double post, just figured you would be more likely to see it.

Hopefully i'm not going backwards with this =x.

http://www.megaupload.com/?d=2FW04APC

 
n/a

MBK



Registered
  07/06/2007
Points
  1578

VIP Member
8th July, 2009 at 03:07:15 -

WOW! Very Nice ... What's your IQ?! ... You must be Genius level or something!

I believe this will solve my problem, but how do I put it into my messy code now? ...
It's a beautiful piece of work. This should be considered art and put up in a museum, that's how good it is.

I'm pretty sure it'll work because I already have a part of the code (the easy part), so if it doesn't conflict in any way,
(and I don't see why it would), then this truly is the answer! ... Lets hope that it is, as I'm so sick of that annoying problem, and I'm sure that you are too by now.

I can't thank you enough.

Edit: I'm gonna give you 300 points now and at least 300 more after I get more points and test to make sure the code meshes well with mine without conflict.


Edited by MBK

 
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 ?
   

Post Reply



 



Advertisement

Worth A Click