ADRIFT Forum


The place to discuss the ADRIFT Interactive Fiction toolkit

Changing pictures?

This forum is the place to learn about and discuss ADRIFT 5. Feel free to mention any bugs you find here, but please also add these to the Bugs & Enhancements list.

Please also refer to the ADRIFT 5 Wiki for more information.

Changing pictures?

Postby P/o Prune » Wed Jan 17, 2018 1:49 pm

Is it possible to have a picture showing for a certain amount of time?

Explanation:
I've got 3 pictures.
1. Is the location when the player first enter.
2. Is where he blows a hole in the wall.
3. Is the same picture as location 1, but showing a massive hole in the wall.

I have created a task: Blow up wall, with the picture of the explosion. The action ends with the command "Execute Look"
It works ok as so far that picture 1 and 3 are shown, but not the explosion.
Is it possible to have the picture of the explosion showing for, say 10 seconds and then move to the new location picture?
D-Day V.5 in progress 86Kb (Slowly drifting)
True North 17Kb
User avatar
P/o Prune
Site Admin
 
Posts: 4223
Joined: Mon Jun 24, 2002 8:18 am
Location: Denmark
Points: 43

Re: Changing pictures?

Postby ice_wanted » Thu Jan 18, 2018 1:05 am

From the wiki (second paragraph)

Graphics:
You can insert graphics into a piece of text by selecting the Graphics tab on the right hand side. This provides a handy preview and URL. You can enter a filename, or a URL from the Internet here. Internet images will be downloaded on the fly, which can minimize the size of your adventure. By default, this will display the graphic at the start of the section of text.

It is also possible to insert multiple images in any piece of text by using <img> tags. The format is <img src="filename or url">. Using the <img> tags also allows you to customise exactly where in the text it will appear. This is useful if, for example, you have <waitkey> or <wait X> tags in your text.
ice_wanted
 
Posts: 92
Joined: Thu Aug 22, 2013 1:12 am
Points: 10

Re: Changing pictures?

Postby saabie » Thu Jan 18, 2018 1:35 am

Like this?
TimedImages.blorb
(82.65 KiB) Downloaded 37 times


The explosion picture is in the press button task which is shown until 5 seconds later when the timed event starts and does a "Look" to show the second picture and changed room description in an alt-desc with the restriction that the button pressing task has run.
saabie
 
Posts: 925
Joined: Fri Aug 12, 2011 2:07 am
Location: Adelaide, South Australia
Points: 25

Re: Changing pictures?

Postby P/o Prune » Thu Jan 18, 2018 9:36 am

Saabie, that exactly what I needed... Is it possible to get a taf file so I can see how you did it?
The Blorb file will not open in the developer.
Please....
D-Day V.5 in progress 86Kb (Slowly drifting)
True North 17Kb
User avatar
P/o Prune
Site Admin
 
Posts: 4223
Joined: Mon Jun 24, 2002 8:18 am
Location: Denmark
Points: 43

Re: Changing pictures?

Postby saabie » Thu Jan 18, 2018 10:42 am

TimedImages.taf
(15.91 KiB) Downloaded 36 times
saabie
 
Posts: 925
Joined: Fri Aug 12, 2011 2:07 am
Location: Adelaide, South Australia
Points: 25

Re: Changing pictures?

Postby P/o Prune » Thu Jan 18, 2018 12:49 pm

saabie wrote:
TimedImages.taf

Owe you big time.. Whenever you come to Denmark look me up.. I'll buy you a beer. :wink:
D-Day V.5 in progress 86Kb (Slowly drifting)
True North 17Kb
User avatar
P/o Prune
Site Admin
 
Posts: 4223
Joined: Mon Jun 24, 2002 8:18 am
Location: Denmark
Points: 43


Return to ADRIFT 5.0

Who is online

Users browsing this forum: No registered users and 3 guests