dupa

Author Topic: Question about background switcher.  (Read 3606 times)

Ooglor 7

  • Sr. Member
  • ****
  • Posts: 369
    • View Profile
Question about background switcher.
« on: May 18, 2008, 03:12:44 am »
Hi guys,

I know there is a code that changes from city to beach from keywords. I for some reason can not get that working properly. I am wanting to use a series of backgrounds as a forest where one of my characters lives. Is there a way to get the background switcher to not only accept North, South, East and West but also step through the backgrounds until we have arrived at the key word destination?

An example,

Let's go to the southern swamp.

(The background would not just load the southern swamp picture but would take one step in a series of backgrounds toward the southern swamp.)

Go south

(Another background step closer down the trail to the southern swamp)

etc...

A way to set up a number of key phrases for each location would be ideal.
When a child is born without a soul...

onthecuttingedge2005

  • Guest
Question about background switcher.
« Reply #1 on: May 18, 2008, 05:50:57 am »
quote:
Originally posted by Ooglor 7

Hi guys,

I know there is a code that changes from city to beach from keywords. I for some reason can not get that working properly. I am wanting to use a series of backgrounds as a forest where one of my characters lives. Is there a way to get the background switcher to not only accept North, South, East and West but also step through the backgrounds until we have arrived at the key word destination?

An example,

Let's go to the southern swamp.

(The background would not just load the southern swamp picture but would take one step in a series of backgrounds toward the southern swamp.)

Go south

(Another background step closer down the trail to the southern swamp)

etc...

A way to set up a number of key phrases for each location would be ideal.




Hi Ooglor.

I don't think it's that advanced yet, but if you want to play around
with google earth and HAL it would probably be close to what you want HAL to do.

Set GoogApp = CreateObject("GoogleEarth.ApplicationGE")

there were about 24 objects for google earth to play around with and I only listed 1 of them above.

Jerry[8D]
« Last Edit: May 18, 2008, 05:51:33 am by onthecuttingedge2005 »

Art

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3862
    • View Profile
Question about background switcher.
« Reply #2 on: May 18, 2008, 09:02:44 am »
I thought Oog wanted to be able to give Hal commands that allow it to auto-change to a differrent background...but I could be wrong.!?
In the world of AI it's the thought that counts!

- Art -

Ooglor 7

  • Sr. Member
  • ****
  • Posts: 369
    • View Profile
Question about background switcher.
« Reply #3 on: May 18, 2008, 10:05:41 am »
Art is correct. I am looking to change the backgrounds, not look up real locations.
When a child is born without a soul...

markofkane

  • Hero Member
  • *****
  • Posts: 5275
  • Crazy Man
    • View Profile
    • http://www.soundspectrum.com
Question about background switcher.
« Reply #4 on: May 18, 2008, 10:57:01 am »
Yes, it can be done, thanks to Dusky.


I don't know if this is what you like, but if you do, you have to put in the locations for your JPG in the script. And copy the script to your Haptek Skins folder.

Here is a script I know works with 2 pics:

#Haptek Version= 2.00 Name= breee3.hap HapType= script FileType= text

\clock [t= 0.0]loadbackground [file= data//standard//skins//j2.jpg]
\clock [t= 0.2]\loadbackground [file= data//standard//skins//j1.jpg]
\clock [t= 0.4]\loadbackground [file= data//standard//skins//j2.jpg]
\clock [t= 0.8]\loadbackground [file= data//standard//skins//j1.jpg]

\clock [t= 1.0]\load [file= data//standard//skins//Jukebox.hap]


you can change the location of your JPGS, as long as you change the directory command location. And you can change the timing, but it must increase on each line.

Kinda complicated, and I find it easier to change the background with hap scripts. I just drop the hap script into the haptek console, and the background changes automatically, without messing up the character.

I'll attach an example:



Download Attachment: changebackground.hap
629 Bytes
Mark: I'll think about it
Laura: Don't think about it too long or I'll throw you out on your ***king a**.
"Political correctness is censorship"

markofkane

  • Hero Member
  • *****
  • Posts: 5275
  • Crazy Man
    • View Profile
    • http://www.soundspectrum.com
Question about background switcher.
« Reply #5 on: May 18, 2008, 11:08:54 am »
PS, replace // with /. I doubled the slashes, because this forum takes out backslashes.
Mark: I'll think about it
Laura: Don't think about it too long or I'll throw you out on your ***king a**.
"Political correctness is censorship"

Ooglor 7

  • Sr. Member
  • ****
  • Posts: 369
    • View Profile
Question about background switcher.
« Reply #6 on: May 18, 2008, 01:11:03 pm »
I'm kinda wanting to set up a mini environment using background pictures and thought it might be cool to traverse this world like the old text game Zork. In fact, it would be kind of cool to incorperate the actual Zork I program into the AI. No clue how one would do that but the game was completely text based and was the first game I bought for my Mac 512 back in 1984.
« Last Edit: May 18, 2008, 01:11:50 pm by Ooglor 7 »
When a child is born without a soul...