This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function eight_point_direction( degDirection ) { | |
return round( degDirection / 45 ); | |
} | |
function eight_point_coord_direction( xFirst, yFirst, xSecond, ySecond ) { | |
var tmpDirection = point_direction( xFirst, yFirst, xSecond, ySecond ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var dialogObj = objectProperties[? "current_dialog"]; | |
//if we're not currently in dialog and there's dialog queued up then show it | |
if( objectProperties[? "in_dialog"] == false && dialogObj != false ) | |
{ | |
ds_map_set( objectProperties, "in_dialog", true ); | |
var newDialogObj = instance_create( x, y - 15, dialog_obj ); | |
newDialogObj.dialogObjToDraw = dialogObj; | |
newDialogObj.parentInstance = self; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if( objectProperties[? "current_dialog"] == false && ds_list_size( objectProperties[? "dialogs"] ) > 0 ) | |
{ | |
var tmpDialogList = objectProperties[? "dialogs"]; | |
var dialogObj = tmpDialogList[|0]; | |
ds_map_set( objectProperties, "current_dialog", dialogObj ); | |
ds_list_delete( objectProperties[? "dialogs"], 0 ); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var x1OfLine = lengthdir_x( distanceAway , currentMouseDirection ); | |
var x2OfLine = lengthdir_x( distanceAway + pointerLength, currentMouseDirection ); | |
var y1OfLine = lengthdir_y( distanceAway , currentMouseDirection ); | |
var y2OfLine = lengthdir_y( distanceAway + pointerLength, currentMouseDirection ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//the x and y coordinates of the crosshair center | |
var objectX = argument0; | |
var objectY = argument1; | |
//how far away to draw the track/circle | |
var distanceAway = argument2; | |
//width of the line of the circle | |
var width = argument3; | |
//the length of the pointer arrow |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var instance = argument0;//instance should be a "standard_obj" with the objectProperties attribute | |
var textToAdd = argument1;//the text the new "new_dialog" obj should init | |
var typeOfDialog = argument2;//dialog type of click or delay. default to click | |
var delayTiming = argument3;//delay time in seconds if typeOfDialog is delay. default is 3 seconds | |
with( instance ) | |
{ | |
var tmpDialog = new_dialog(); | |
ds_map_set( tmpDialog, "text", textToAdd ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var instance = argument0;//instance should be a "standard_obj" with the objectProperties attribute | |
var dialogToAdd = argument1;//instance should be a "new_dialog" | |
with( instance ) | |
{ | |
var tmpObjProps = instance.objectProperties; | |
var dialogsList = tmpObjProps[? "dialogs"]; | |
ds_list_add( dialogsList, dialogToAdd ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var prop_list = ds_map_create(); | |
ds_map_add( prop_list, "text", "" ); //the text this dialog should show | |
ds_map_add( prop_list, "type", "click" ); //the progression type of the dialogy. click or delay are the two options so far | |
ds_map_add( prop_list, "delay", 3 ); //if the type is delay, how many seconds to show the dialog for | |
return prop_list; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var prop_list = ds_map_create(); | |
ds_map_add( prop_list, "current_dialog", false ); | |
ds_map_add( prop_list, "in_dialog", false ); | |
ds_map_add( prop_list, "dialogs", ds_list_create() ); //the list of "dialogs" - created via the new_dialog script | |
return prop_list; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
XCTRLSTYLE 2, 3 | |
CONTROLLER 1 OUT ControllerType | |
IF ControllerType == 4 OR ControllerType == 5 THEN | |
PRINT "Ah! A wizard just like me!" | |
ELSE | |
PRINT "Nothing to see here." | |
END IF |
NewerOlder