- Spoiler

I'm trying to make an upside-down buzzy bettle, the current code is okay but I've got a problem, I need the NPC faces to the other side when its in the edges (I mean cliffturn). Due its gravity is inverted I can't use parallel execution, so all what I need is a way to detect if the NPC is touching a block or not, or some example about how do I make the NPC do a cliffturn in a code. Can anyone please help me? I would appreciate it a lot, is all what I need to finish a NPC pack. :(
| ||
It is not effecient to let the npc do the following codes per frame , so please make the npc detect each three or four frames .
Code: Select all For val(Blocks) =1 to sysval(BCount)You can add something into them . This function make the npc detect all blocks in the level to find out the block which is match with your given conditions . To use the block's variable , use this : Code: Select all block(val(Blocks))![]() | ||
Who is online (over the past 5 minutes)Users browsing this forum: 1 guest | ||