Skip to content
This repository has been archived by the owner on Mar 17, 2024. It is now read-only.

Commit

Permalink
Various Fixes and Tweaks
Browse files Browse the repository at this point in the history
+ Added function that returns list of all events in a bank file. #8
+ Added function that returns event path name of an event instance. #7
+ Added function for getting listener position.
+ Fixed #9
  • Loading branch information
Mr-Unown committed Sep 16, 2023
1 parent 2b7d04d commit 6f8ba6c
Show file tree
Hide file tree
Showing 16 changed files with 346 additions and 115 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,11 @@
{"name":"spr_unownPixel","order":2,"path":"sprites/spr_unownPixel/spr_unownPixel.yy",},
{"name":"obj_solid","order":6,"path":"objects/obj_solid/obj_solid.yy",},
{"name":"event_play_at","order":2,"path":"scripts/event_play_at/event_play_at.yy",},
{"name":"License","order":2,"path":"notes/License/License.yy",},
{"name":"spr_robo_crouchend","order":13,"path":"sprites/spr_robo_crouchend/spr_robo_crouchend.yy",},
{"name":"spr_debris","order":12,"path":"sprites/spr_debris/spr_debris.yy",},
{"name":"fmodGMS2","order":1,"path":"extensions/fmodGMS2/fmodGMS2.yy",},
{"name":"spr_credits","order":15,"path":"sprites/spr_credits/spr_credits.yy",},
{"name":"spr_unownPlatform","order":3,"path":"sprites/spr_unownPlatform/spr_unownPlatform.yy",},
{"name":"fmodGMS2","order":1,"path":"extensions/fmodGMS2/fmodGMS2.yy",},
{"name":"obj_movingPlatformTrigger","order":1,"path":"objects/obj_movingPlatformTrigger/obj_movingPlatformTrigger.yy",},
{"name":"scr_mathFunctions","order":1,"path":"scripts/scr_mathFunctions/scr_mathFunctions.yy",},
{"name":"obj_slopePlatform","order":5,"path":"objects/obj_slopePlatform/obj_slopePlatform.yy",},
Expand All @@ -48,6 +47,7 @@
{"name":"spr_unownSlopePlatform","order":6,"path":"sprites/spr_unownSlopePlatform/spr_unownSlopePlatform.yy",},
{"name":"spr_unownSidePlatform","order":4,"path":"sprites/spr_unownSidePlatform/spr_unownSidePlatform.yy",},
{"name":"spr_playground","order":14,"path":"sprites/spr_playground/spr_playground.yy",},
{"name":"License","order":2,"path":"notes/License/License.yy",},
{"name":"obj_startuplinks","order":8,"path":"objects/obj_startuplinks/obj_startuplinks.yy",},
{"name":"obj_explosion","order":4,"path":"objects/obj_explosion/obj_explosion.yy",},
{"name":"scr_collisionLibraryCollision","order":1,"path":"scripts/scr_collisionLibraryCollision/scr_collisionLibraryCollision.yy",},
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
#define fmod_bank_listEventPath
/// @param {real} id ds_list id.
/// @param {any*} bank_handle
var string_eventlist = ___INTERNAL_fmod_bank_listEventPath(argument1);
// Split the string by commas
var string_parts = string_split(string_eventlist, ",");
for (var i = 0; i < array_length(string_parts); ++i) {
ds_list_add(argument0, string_parts[i]);
}
return ds_list_size(argument0);

#define fmod_listener_setPosition
/// @param {real} listener
/// @param {any*} x
/// @param {any*} y
/// @param {any*} [z]
var listener = 0, xx = 0, yy = 0, zz = 0;
var listener = argument[0], xx = argument[1], yy = argument[2];
if (argument_count == 4) {
zz = argument[3];
}

return ___INTERNAL_fmod_listener_setPosition(listener, xx, yy, zz);


#define fmod_listener_getPosition
/// @param {real} listener
// Create a struct to hold the position
var listener_position = {
x : undefined,
y : undefined,
z : undefined
}
var string_listener = ___INTERNAL_fmod_listener_getPosition(argument0);
// Split the string by commas
var string_parts = string_split(string_listener, ",");
listener_position.x = real(string_parts[0]);
listener_position.y = real(string_parts[1]);
listener_position.z = real(string_parts[2]);
return listener_position;
Loading

0 comments on commit 6f8ba6c

Please sign in to comment.