Skip to content

Plugins

elpoep edited this page Feb 15, 2025 · 2 revisions

Introduction

elpAudio Plugins are a new way to improve elpAudio. You can do ANYTHING with them.

Structure

Plugin structure look like this:

Comments can look like this but they should be written between events initializers.
#define create
px=0
py=0
dx=0
dy=0
#undef create
step event
#define step
px=lengthdir_x(50,current_time*0.08)
py=lengthdir_y(40,current_time*0.07)
dx=-px
dy=-py
#undef step
DRAW!!!!!!
#define draw
draw_line(view_wport/2+px,view_hport/2+py,view_wport/2-dx,view_hport/2-dy);
#undef draw

There are "events" in plugins, 4 of them:

  • create - event that is executing once
  • step - event that is executing every frame
  • draw - step event but you can draw in here

Clone this wiki locally