Some problems with Beneath at Steel Sky GUI (exit cursors)

Started by Alarconte, Mon 12/05/2008 20:05:35

Previous topic - Next topic

Alarconte

I have some problem, maybe by the change of version from hotspot to region to do the change of rooms, maybe.

Well, The thing is this:

I used the Beneath at steel sky gui template, and this is the code line to change the cursor image in the exits of the screens. Well, this code could work in 3.0.1? In that case? Where in the hell I supose to name "exit_right"? The regions can't have name, and the hotspot doesn't working (aparently).

I need to do a custom script for every room, or It be a easy way to do in the global script?

Thanks!

   
Code: ags

/////////////////////////
// check if we have an exit-code at the start of the name
/////////////////////////
    if(StrGetCharAt(buffer, 0) == 'e')		// exit?
    {
      if(StrGetCharAt(buffer, 1) == 'r')	// exit right
      {
        isExit = EXIT_RIGHT;
        ChangeCursorGraphic(MODE_EXIT, 13);
      }
      else if(StrGetCharAt(buffer, 1) == 'l')	// exit left
      {
        isExit = EXIT_LEFT;
        ChangeCursorGraphic(MODE_EXIT, 12);
      }
      else if(StrGetCharAt(buffer, 1) == 't')	// exit top
      {
        isExit = EXIT_TOP;
        ChangeCursorGraphic(MODE_EXIT, 14);
      }
      else if(StrGetCharAt(buffer, 1) == 'b')	// exit bottom
      {
        isExit = EXIT_BOTTOM;
        ChangeCursorGraphic(MODE_EXIT, 11);
      }
      if(isExit != 0)
      {
        i = 2;
        ChangeCursorHotspot(MODE_EXIT, 5, 5);
        while(i < StrLen(buffer))
        {
          StrSetCharAt(buffer, i-2, StrGetCharAt(buffer, i));
          i++;
        }
        StrSetCharAt(buffer, StrLen(buffer) - 2, 0);	// terminating the string correctly
      }
    }



EDIT:

I make extensive this question to this:

What is the shorter way and best way to make the mouseovers arrows to change room? Propierties? room scripts? Any casual code?
"Tiny pixelated boobies are the heart and soul of Castlevania"

Galactic Battlefare Capital Choice Part 1 , finished, releasing soon
GBF CC Part 2, WIP


SMF spam blocked by CleanTalk