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.
Collision detection
Started by
Beefster
, Feb 13 2008 09:32 PM
7 replies to this topic
#1
Posted 13 February 2008 - 09:32 PM
#2
Posted 17 February 2008 - 04:25 AM
What context? Can you be more specific?
#3
Posted 17 February 2008 - 04:00 PM
He means he wants to make FFCs solid via scripting Gleeok.
I think anyway.
I think anyway.
#4
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.
This isn't rocket science.
#5
Posted 18 February 2008 - 10:33 AM
Is it possible to do that via Global Script, and then say
in the ffc script?
CODE
this->solid = true
in the ffc script?
#6
Posted 18 February 2008 - 12:20 PM
Why would he be posting the thread if you could just do that?
#7
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
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