The Daily Click ::. Forums ::. Klik Coding Help ::. Spreading Values or Distance Math Solution for a Specific Situation
 

Post Reply  Post Oekaki 
 

Posted By Message

MBK



Registered
  07/06/2007
Points
  1578

VIP Member
12th January, 2009 at 21:21:51 -

I've created a 2.5d movement engine with platforming capabilities.

Here's the Problem:

I have several platforms and several platform shadows ... when the character jumps and his shadow is overlapping the shadow of the platform and the character lands on the platform itself the falling stops for EVERY platform. It needs to fall through the platforms that are on a different line.

Maybe it would be easier if someone showed a good method of making a 3d grid system ? .... well, either way I'm stuck without a solution for the time being, so any help will be appreciated.

I need to differentiate between copies of the same platform ... Also need a way to link the platform shadow to the platform itself (meaning the value of the specific shadow should link up with the value of a specific platform and that value should be different than the other copies) ...

I read the article on Spreading by DeadManDines and tried to get it to work, but apparently it only works if you always set the position based on the other object, which really wouldn't work because I'd like to be able to set the height of platforms different throughout the level.


 
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 ?

MBK



Registered
  07/06/2007
Points
  1578

VIP Member
15th January, 2009 at 06:10:50 -

Nevermind, I figured it out, ... Thank God for DeadManDines and his Articles ... I didn't quite grasp why it wouldn't work for my situation at first, but then I realised how much of a total moron I was being after I went back over the part about the circle detector telling the enemy when to look at bullets or something like that a few dozen times ...

Anyways, I actually put the code in to test it, and it didn't work at first, until once again I realised how stupid I was being ...
I was playing with the Y axis values so much that I completely forgot about the X axis values ...

Turns out all I had to do was position the platforms according to the X axis value of the platform shadow using Spread Values and a few conditional tests and bazow ! ... PROBLEM SOLVED.

Now I just have to combine the code with visual stuff and collisions stuff I did and everything should be right ...

The annoying part of the way that I made this work is that I'll need to adjust all the collision detection and view to front/back coding according to the height of the character ... so if anyone can show me a better way to do this or make an open source 3d grid, that'd be Awesome ...

Is anybody out there ? O.o
20 people viewed this and noone replied even to say that it's impossible with TGF1 and I should buy MMF2 ... lol ... it's very possible with TGF1 btw, cause I did it.


 
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