Jump to content

Photo

Collision detection


  • Please log in to reply
7 replies to this topic

#1 Beefster

Beefster

    Human Being

  • Members
  • Real Name:Justin
  • Location:Colorado

Posted 13 February 2008 - 09:32 PM

Does anyone have some code that does this. I'm tired of figuring it out for myself for the Dominion Rod script. The basic statue needs it.

#2 Gleeok

Gleeok

    It's dangerous to dough alone, bake this.

  • Members
  • Real Name:Pillsbury
  • Location:Magical Land of Dough

Posted 17 February 2008 - 04:25 AM

What context? Can you be more specific?

#3 Joe123

Joe123

    Retired

  • Members

Posted 17 February 2008 - 04:00 PM

He means he wants to make FFCs solid via scripting Gleeok.
I think anyway.

#4 C-Dawg

C-Dawg

    Magus

  • Members

Posted 17 February 2008 - 10:07 PM

Check if the player is immediately west, east, north, or south of the FFC (is Link's X only 17 pixels away from this ffc's X?) and input is trying to move the player onto the FFC. Then either cancel the input (set Link->Left to zero, for instance) or move Link back one pixel.

This isn't rocket science.



#5 Zephlon

Zephlon

    Experienced Forumer

  • Members

Posted 18 February 2008 - 10:33 AM

Is it possible to do that via Global Script, and then say
CODE
this->solid = true

in the ffc script?

#6 Joe123

Joe123

    Retired

  • Members

Posted 18 February 2008 - 12:20 PM

Why would he be posting the thread if you could just do that?

#7 C-Dawg

C-Dawg

    Magus

  • Members

Posted 19 February 2008 - 09:57 AM

Go visit AGN. I posted a quick ffc script that should mock solidity, if it compiles. It'll give you somewhere to start.

#8 Beefster

Beefster

    Human Being

  • Members
  • Real Name:Justin
  • Location:Colorado

Posted 21 February 2008 - 04:48 PM

Thanks. I just added a few parentheses and it worked fine and compiled.


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users