Файлы: 857 Видео: 13 Комментарии: 242 Статьи: 306 Новости: 155 Форум: 39179 Пользователи: 3406 + 0 |Добавить на сайт ...

Новое на форуме Новые статьи Мини профиль
[ Обновленные темы · Новые сообщения · Участники · Правила форума · Поиск · RSS ]
  • Страница 1 из 1
  • 1
Модератор форума: Manoichi, Ronnie, Skamp  
MUGEN WORKS - ANIME,CHARACTERS,STAGES,SCREENPACK,LIFEBAR » M.U.G.E.N » Туториалы / Tutorials » BackEdge, FrontEdge, LeftEdge, RightEdge, TopEdge & BottomEd
BackEdge, FrontEdge, LeftEdge, RightEdge, TopEdge & BottomEd
Manoichi
Дата: Четверг, 12.11.2015, 15:10 | Сообщение # 1
BackEdge returns the x position of the edge of the screen that is behind the player, in absolute stage coordinates.
FrontEdge returns the x position of the edge of the screen that is in front the player, in absolute stage coordinates.

LeftEdge returns the x position of the left edge of the screen, in absolute stage coordinates.
RightEdge returns the x position of the right edge of the screen, in absolute stage coordinates.

TopEdge returns the y position of the top edge of the screen, in absolute stage coordinates.
BottomEdge returns the y position of the bottom edge of the screen, in absolute stage coordinates.

Format:
1.) BackEdge
2.) FrontEdge
3.) LeftEdge
4.) RightEdge
5.) TopEdge
6.) BottomEdge

Arguments:
none

Return type:
float

Error conditions:
none

Notes:
1.) BackEdge
This trigger is equivalent to the expression "ifelse(facing = 1, LeftEdge, RightEdge)".
2.) FrontEdge
This trigger is equivalent to the expression "ifelse(facing = 1, RightEdge, LeftEdge)".
3.) LeftEdge
This trigger is equivalent to the expression "CameraPos X - GameWidth / 2".
4.) RightEdge
This trigger is equivalent to the expression "CameraPos X + GameWidth / 2".
5.) TopEdge
This trigger is equivalent to the expression "Pos Y - ScreenPos Y".
6.) BottomEdge
This trigger is equivalent to the expression "Pos Y - ScreenPos Y + GameHeight".

Example:

Код
Code:
trigger1 = Pos X + CameraPos X < BackEdge
  Triggers if the player is to the left of the back edge of the screen.

trigger1 = facing * (Pos X + CameraPos X) < facing * (FrontEdge)
  Triggers if the player is behind the front edge of the screen.

trigger1 = Pos X + CameraPos X < LeftEdge
  Triggers if the player is to the left of the left edge of the screen.

trigger1 = Pos X + CameraPos X > RightEdge
  Triggers if the player is to the right of the right edge of the screen.

trigger1 = Pos Y > TopEdge
  Triggers if the player is below the top edge of the screen.

trigger1 = Pos Y < BottomEdge
  Triggers if the player is above the bottom edge of the screen.
MUGEN WORKS - ANIME,CHARACTERS,STAGES,SCREENPACK,LIFEBAR » M.U.G.E.N » Туториалы / Tutorials » BackEdge, FrontEdge, LeftEdge, RightEdge, TopEdge & BottomEd
  • Страница 1 из 1
  • 1
Поиск: