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

Topics - Cine Beast

#1
Yo, Cine Beast here - asking for aid yet again.  :-[

I'm developing a game that uses the tried-and-true Sierra interface, but I want to mix things up with one of the cursors (a cursor I've added).

I have made a Wand cursor that can be directed just like the others, but I want the following to occur when I left-click a hotspot/object/everything:

A Text GUI appears with a list of spells -
I pick a spell in the textbox and hit "Cast" -
The spell is cast, and the target is affected.

In short, a system similar to the interface in 7 Days a Skeptic & 6 Days a Sacrifice.

I'm pretty much done, but there is an inescapable problem: the GUI shows up, but when I hit "Cast," the effect does not occur.

This is the messy code for when I left-click the hotspot:

  gSpell.Visible = true;
  if (currentspell == 1 && heroicspell == true) {//So, if Incendio is chosen AND cast, the following occurs.
    cEgo.Say("Incendio!");
    Display("Fire streams from your wand and sets the blackness ablaze.");
    heroicspell = false;//So the player just casts the spell once.
    mouse.UseModeGraphic(eModeMagic);
  }

I have it set that when in the GUI, if you select "Incendio," the int "currentspell" is set to 1, and when you click "Cast," the bool "heroicspell" is set to true, so this really should work.

I think the problem is that by the time I've selected the spell and cast it, the function has already ended, and I've missed my chance. If so, I suppose I need some way for the function to repeat, or else become Blocked just after the GUI becomes visible.

I hope I made my problem clear. Thanks in advance.
#2
Yo, Cine Beast here. I'm nearly finished with my first game, and have encountered a problem that may or may not be a real problem (if it isn't, that's disheartening).

I have a room where four timers are in use. In the load of the room, timer 1 starts and lasts for 2 seconds. After that, in the Repeatedly Executing, timer 2 goes for 2 seconds, then 3, then 4. No problems.

However, at the timeout of 4, I want timer 1 to start (and have the cycle repeat endlessly). It does not.

I'm wondering if this is a standard thing - will a timer only work once. If it isn't, then I'd love some help. I'm inexperienced here, so if you need me to show my code or something, I'll need a hand with that, too.

Thanks in advance.
#3
Hey, I'm new to AGS, but I'm making good progress (err, at least I think so). I've read/watched the tutorials, but as of yet I haven't seen any suggestions on how to make a death screen. I would prefer a Sierra style screen.

Example:

You're playing King's Quest and walk King Graham off of a ledge. He plummets to his death, and you get a game over: there's a picture, a pun-filled description, and the option to quit, restore, or restart.

How would I go about making something like this?  ???

Thanks in advance.
SMF spam blocked by CleanTalk