Menu

Show posts

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 Menu

Messages - VENOMDRINKER

#1
Quote from: Creamy on Wed 04/10/2023 23:23:20What have I just played? (wtf)

Spoiler
I wonder if there's another ending that being devoured by the girl.
[close]

A very creepy adventure game lol

Spoiler
use the sickle on the woman then use the head.
[close]
#2
Feels great to already hear some feedback. Thank you both so much!

Already in the mood to start a new project  (laugh)
#3



Summary

A first-person occult horror point-and-click adventure. The player is trapped in the twisted nightmare of the Hag. To escape, one must play through the Hag's ritual to ascend.

Approximate play-time

10 min

Resolution/

320x180 (16:9)

Content Warning

Blood and Gore


Download https://venomdrinker-dev.itch.io/night-hag-syndrome

AGS Page: https://www.adventuregamestudio.co.uk/site/games/game/2699-night-hag-syndrome/

Special thanks to Kris and Crimson Wizard for tech suppport
#4
I should have been thinking about time zones before posting  :-D

Changed the line and now my cursor animates over GUI buttons and items!

Something else, now when I select an item and which to the Use Inv cursor it no longer switches to the CursorImage with it's custom hotspot marker but instead stays on the default cursor while the item is selected.
#5
Quote from: VENOMDRINKER on Wed 13/09/2023 22:53:53Fixed the mouse letter casing.

Now it's telling me "Nested functions not supported (you may have forgotten a closing brace) on the repeatedly_execute() line

Nevermind, forgot to end the function with a }

But now when the game starts it crashes saying
"error running function 'repeatedly_execute':
Error (line 107): null pointer referenced"

Line 107 being
Code: ags
 If (gc.AsButton != null || ii != null) mouseAnimFrame++; // hovering
#6
Fixed the mouse letter casing.

Now it's telling me "Nested functions not supported (you may have forgotten a closing brace) on the repeatedly_execute() line
#7
Quote from: RootBound on Wed 13/09/2023 20:57:39I would create a global int variable called MouseOverButton which is 0 by default.

Then, in the global script, under repeatedly_execute, put something like this:
Code: ags

if (GUIcontrol.GetAtScreenXY(mouse.x, mouse.y) != null){
  MouseOverButton += 1;
  // if you want it to animate only over certain buttons you'll need to add more conditions to the above if statement 
}

if (Guicontrol.GetAtScreenXY(mouse.x,mouse.y == null){
  MouseOverButton= 0;
  //If mouse animation is repeating, add a line to stop it here
}

if (MouseOverButton == 1){
  //Animate mouse cursor here, non-blocking
}


There might be simpler ways to do this but I'm not at my computer right now. Didn't test it.
   



I attempted this but didn't get any results.

Quote from: Khris on Wed 13/09/2023 21:37:54Put this somewhere above the repeatedly_execute function in the global script:

Code: ags
int mouseAnimFrame;

function HandleMouseAnim() {
  GUIControl* gc = GUIControl.GetAtScreenXY(Mouse.x, Mouse.y);
  InventoryItem* ii = InventoryItem.GetAtScreenXY(Mouse.x, Mouse.y);
  
  if (gc.AsButton != null || ii != null) mouseAnimFrame++; // hovering
  else mouseAnimFrame = 0;

  int view = MOUSE_ANIMATION; // view name here
  int frame = (mouseAnimFrame / 5) % Game.GetFrameCountForLoop(view, 0); // speed: 5
  ViewFrame* vf = Game.GetViewFrame(view, 0, frame);
  Mouse.ChangeModeGraphic(Mouse.Mode, vf.Graphic);
}

Now add this line inside the repeatedly_execute function:
Code: ags
  HandleMouseAnim();

Used this on got a message at the "GUI control* gc = GUIcontrol.GetAtScreenXY(Mouse.x, mouse.y);" line

"Must have an instance of the struct to access a non-static member."
#8
I'm trying to script my mouse cursor to animate over GUI buttons and Inventory items like it does over Hotspots.

I understand the Pointers are used somehow but I'm completely new to scripting and have no idea how to get my Cursor to animate in the GUI.
SMF spam blocked by CleanTalk