Author Topic: Detect what's below the player  (Read 641 times)

Antikore

  • Developing Mortal Theater at day, developing depression at night.
  • Level 22: Trex
  • *
  • Posts: 2020
  • Enjoying Platform Builder from the very start
    • View Profile
    • PBuilder Resources
Detect what's below the player
« on: March 29, 2020, 02:52:20 PM »
Code: [Select]
if player 1 over = oneway platform
{
//Code
}
Use examples:
solid - Anything solid
fullsolid - Anything full solid (No oneway platforms)
air - Doesn't have anything below
scaffold, oneway - Oneway Platforms, and any that works like that
moving - Any moving platform
invisible - Any invisible block thingy
ladders - Over a ladder block or invisible one
ramp, ledge - Any ledge type.
null - If none of those is true, or if the player is not able to stay over anything.
Sorry because my English is not very good because I'm Spanish ;) :P

CGM

  • Christian, 3D artist, former Platform Builder gamdev
  • Master Builder
  • *
  • Posts: 3836
    • View Profile
Re: Detect what's below the player
« Reply #1 on: March 29, 2020, 07:14:41 PM »
Woah. That's like...just the beginning. You could do 100 commands for all of the different objects and those specifications, and then the coding that'd have to be put into that, and the time...then you add the different directions. Up, left and right, that's...asking a lot.