But I've got a default cursor, and disabled all the ones I don't need.
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts Menufunction hDrawer_UseInv(Hotspot *theHotspot, CursorMode mode)
{
if (player.ActiveInventory == iDrawerkey)
{
player.Say("Hi");
SetBackgroundFrame(1);
player.LoseInventory(iDrawerkey);
}
}
int find_save_slot(String name)
{
bool slots[] = new bool[999];
int i = 0;
while (i < lstSaveGamesList.ItemCount)
{
if (lstSaveGamesList.Items[i] == name)
{
// found existing save with matching name
return lstSaveGamesList.SaveGameSlots[i];
}
// remember which slots are already taken
slots[lstSaveGamesList.SaveGameSlots[i]] = true;
i ++;
}
// find first free save slot, starting with slot 1
i = 1;
while (i < 999)
{
if (!slots[i])
{
return i;
}
i ++;
}
// no free slots found
return -1;
}
function btnSaveGame_OnClick(GUIControl *control, MouseButton button)
{
int gameSlotToSaveInto = find_save_slot(txtNewSaveName.Text);
if (gameSlotToSaveInto < 0)
{
Display("No more free save slots!");
}
else
{
SaveGameSlot(gameSlotToSaveInto, txtNewSaveName.Text);
close_owning_gui(control);
}
}
function lstSaveGamesList_OnSelectionCh(GUIControl *control)
{
txtNewSaveName.Text = lstSaveGamesList.Items[lstSaveGamesList.SelectedIndex];
}
function txtNewSaveName_OnActivate(GUIControl *control)
{
// pressing Return in the text box simulates clicking the save button
btnSaveGame_OnClick(control, eMouseLeft);
}
StartCutscene(eSkipAnyKey);
while(gCredits.Y > (0 - gCredits.Height)){
gCredits.Y -=10;
Wait(1);
}
EndCutscene();
QuitGame(0);
function room_FirstLoad()
{
int yellow = Game.GetColorFromRGB(255, 255, 0);
int white = Game.GetColorFromRGB(255, 255, 255);
Credits.SetFont(eFontFont0, 15); // font, line height
Credits.SetColor(white); // default text color
Credits.SetShadow(17, 1, 1); // color, offsetX, offsetY
Credits.SetWidth(200); // total width of credits text
Credits.SetDelay(1, -5); // 1 pixel per frame, 5 pixels per frame when mouse is held down
Credits.AddLine("Made with", eAlignCenter, 0, yellow);
Credits.AddLine("Adventure Game Studio");
Credits.AddSpace();
Credits.AddLine("Special Thanks To", eAlignCenter, 0, yellow); // yellow text
Credits.AddLine("Alice", eAlignLeft);
Credits.AddLine("Bob", eAlignRight, -1); // offset -1: add text to previous line
Credits.AddLine("Charles", eAlignLeft);
Credits.AddLine("Dick", eAlignRight, -1);
Credits.AddLine("Eddie");
Credits.AddSpace(50); // add gap of 50 pixels
Credits.AddLine("THE END");
}
bool credits_running;
function room_Load()
{
}
DynamicSprite* credits; // create pointer
void StartCredits() {
credits_running = true; // set flag for room_RepExec
gCredits.Visible = true; // show GUI
credits = Credits.Tick(); // run first update to get sprite
gCredits.BackgroundGraphic = credits.Graphic; // set GUI background
}
void CreditsEnded() {
gCredits.Visible = false; // hide GUI
credits.Delete(); // clean up
credits_running = false; // reset flag
QuitGame(0); // or go to main menu
}
void DoCredits() {
Credits.Tick(); // advance credits display
if (Credits.Done()) CreditsEnded(); // credits have finished
}
function room_RepExec()
{
if (credits_running) DoCredits();
}
void on_key_press(eKeyCode k) {
if (k == eKeySpace) StartCredits();
}
void _do_one_call(String call_text) {
credits_call_label.Width = 1920;
credits_call_label.Height = 1080;
credits_call_label.Y = 178;
credits_call_label.X = 0;
credits_call_label.Font = eFontFont0;
System.Log(eLogInfo, "Oh joy I'm dying.", player.Room);
gCredits.Transparency = 100;
credits_call_label.Text = call_text;
gCredits.Visible = true;
gCredits.TweenTransparency(1.0, 0, eEaseInBackTween, eBlockTween);
Wait(SecondsToLoops(4.0));
gCredits.TweenTransparency(1.5, 100, eEaseLinearTween, eBlockTween);
gCredits.Visible = false;
Wait(SecondsToLoops(1.0));
}
String _append_credits(String txt, String call_txt)
{
txt = txt.Append(call_txt);
txt = txt.Append("[[");
return txt;
}
void credits_do_calls()
{
_do_one_call("Created by Érico Porto");
_do_one_call("Music by Jon Paul Sapsford");
_do_one_call("Ghosts, graves and icon by Haloa");
_do_one_call("Gameplay Testing[thanks to[Morgan Willcock,[Heltenjon[and Newwaveburritos");
}
void credits_do_rolling()
{
String txt = "";
txt = _append_credits(txt, "Don't Give Up the Cat");
txt = _append_credits(txt, "");
txt = _append_credits(txt, "Created by Erico Porto");
txt = _append_credits(txt, "Music by Jon Paul Sapsford");
txt = _append_credits(txt, "Ghosts, graves and icon by Haloa");
txt = _append_credits(txt, "Gameplay Testing[thanks to[Morgan Willcock,[Heltenjon[and Newwaveburritos");
txt = _append_credits(txt, "");
txt = _append_credits(txt, "Made in Adventure Game Studio");
txt = _append_credits(txt, "");
txt = _append_credits(txt, "with Tween Module by Edmundito");
txt = _append_credits(txt, "and with Timer and Typed Text modules by Crimson Wizard");
txt = _append_credits(txt, "");
txt = _append_credits(txt, "");
txt = _append_credits(txt, "Using assets");
txt = _append_credits(txt, "");
txt = _append_credits(txt, "Forest trees, stones, flowers and base palette using STRINGSTAR FIELDS by Trixie");
txt = _append_credits(txt, "Clouds using SunnyLand by ansimuz");
txt = _append_credits(txt, "Home using 3D Model House by Lanthanum");
txt = _append_credits(txt, "Save cat animation using kitka by kotnaszynce");
txt = _append_credits(txt, "Smoke using Smoke & Fire Animated Particle by KnoblePersona");
txt = _append_credits(txt, "Title Screen Cat using Camp Cat by Ben");
txt = _append_credits(txt, "");
txt = _append_credits(txt, "Forest crickets and atmosphere using Swamp Environment Audio by LokiF");
txt = _append_credits(txt, "Cat Footsteps using Animal footsteps on dry leaves by melle_teich");
txt = _append_credits(txt, "Cat Jump using Cat jump by FOX2814");
txt = _append_credits(txt, "");
txt = _append_credits(txt, "");
txt = _append_credits(txt, "Thank you for playing it!");
txt = _append_credits(txt, "");
txt = _append_credits(txt, "");
txt = _append_credits(txt, "Made for MAGS theme \"Ghost\"");
txt = _append_credits(txt, "November 2022");
txt = _append_credits(txt, "");
credits_call_label.Font = eFontFont1;
credits_call_label.Height = GetTextHeight(txt, eFontFont1, credits_call_label.Width) + 64;
credits_call_label.Text = txt;
credits_call_label.Y = Screen.Height + 32;
gCredits.Visible = true;
gCredits.Transparency = 0;
credits_call_label.TweenY(40.0, -credits_call_label.Height, eEaseLinearTween, eBlockTween);
gCredits.Visible = false;
}
By continuing to use this site you agree to the use of cookies. Please visit this page to see exactly how we use these.
Page created in 0.032 seconds with 13 queries.