<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://myst.dustbird.net/w/index.php?action=history&amp;feed=atom&amp;title=Making_Something_Clickable</id>
	<title>Making Something Clickable - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://myst.dustbird.net/w/index.php?action=history&amp;feed=atom&amp;title=Making_Something_Clickable"/>
	<link rel="alternate" type="text/html" href="http://myst.dustbird.net/w/index.php?title=Making_Something_Clickable&amp;action=history"/>
	<updated>2026-05-12T20:47:32Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.31.0</generator>
	<entry>
		<id>http://myst.dustbird.net/w/index.php?title=Making_Something_Clickable&amp;diff=1275&amp;oldid=prev</id>
		<title>AndyLegate at 18:19, 8 January 2011</title>
		<link rel="alternate" type="text/html" href="http://myst.dustbird.net/w/index.php?title=Making_Something_Clickable&amp;diff=1275&amp;oldid=prev"/>
		<updated>2011-01-08T18:19:26Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 18:19, 8 January 2011&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l79&quot; &gt;Line 79:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 79:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The python file is normally the name of the python file that you used for the Dynamic Book Template. &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The python file is normally the name of the python file that you used for the Dynamic Book Template. &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Journal Tut Place Holder&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;[[Creating Linking Books And Journals]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;It&amp;#039;s a button/lever/whatever and I want the avatar to animate, and something else to happen, and yadda yadda yadda yadda yadda yadda.....&amp;#039;&amp;#039;&amp;#039;&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;It&amp;#039;s a button/lever/whatever and I want the avatar to animate, and something else to happen, and yadda yadda yadda yadda yadda yadda.....&amp;#039;&amp;#039;&amp;#039;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>AndyLegate</name></author>
		
	</entry>
	<entry>
		<id>http://myst.dustbird.net/w/index.php?title=Making_Something_Clickable&amp;diff=1274&amp;oldid=prev</id>
		<title>AndyLegate: Created page with &#039;Please note that this tutorial is quite old (one of my first, and started out simply as a note for myself). I will most likely be updating it in the near future.  1/8/2011  ---- …&#039;</title>
		<link rel="alternate" type="text/html" href="http://myst.dustbird.net/w/index.php?title=Making_Something_Clickable&amp;diff=1274&amp;oldid=prev"/>
		<updated>2011-01-08T18:18:30Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;#039;Please note that this tutorial is quite old (one of my first, and started out simply as a note for myself). I will most likely be updating it in the near future.  1/8/2011  ---- …&amp;#039;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Please note that this tutorial is quite old (one of my first, and started out simply as a note for myself). I will most likely be updating it in the near future.  1/8/2011&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
First you need to build your clickable object, texture it, and put it in your Age where it needs to go. Once you have done that, you need to do two more things:&lt;br /&gt;
&lt;br /&gt;
Apply Scaling and Rotation&lt;br /&gt;
Make it and actor with bounds set.&lt;br /&gt;
&lt;br /&gt;
To apply the scaling and rotation, do the following.&lt;br /&gt;
First select your object, then press the &amp;quot;N&amp;quot; key.&lt;br /&gt;
A little box will pop up&lt;br /&gt;
&lt;br /&gt;
[[File:Clicbuttut3.png]]&lt;br /&gt;
&lt;br /&gt;
Look at the 3 little boxes that say ScaleX, ScaleY and ScaleZ. They should all say 1.0&lt;br /&gt;
If they don&amp;#039;t, when you export your Age, your object will appear HUGE if you make it a clickable.&lt;br /&gt;
&lt;br /&gt;
To apply the scaling and rotation, then press and hold the Cntl key, and then press the &amp;quot;A&amp;quot; key (Cntrl-A).&lt;br /&gt;
A little box will pop up. Click on &amp;quot;Scale and Rotation to ObData&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Now look in the little box we called up with the &amp;quot;N&amp;quot; key. ScaleX, ScaleY and ScaleZ should now all say 1.0&lt;br /&gt;
&lt;br /&gt;
Now go to the logic panel (purple smiley face). Make the object and Actor by clicking on that button, and set the bounds to Convex Hull&lt;br /&gt;
&lt;br /&gt;
[[File:Clickbuttut1.png]]&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;Note: if your object is rather complex, and after following these steps your object is not clickable, you may need to change the bounds to Static Triangle Mesh.&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
Now that you&amp;#039;ve done that, you need to create a clickable region.&lt;br /&gt;
&lt;br /&gt;
Change one of your windows to the Scripting Window (little green snake). Click on Script, then Add, the PyPRP:&lt;br /&gt;
&lt;br /&gt;
[[File:Clickbuttut4.png]]&lt;br /&gt;
&lt;br /&gt;
A new box will pop up. Click on Add a (Generic) Logic Region.&lt;br /&gt;
&lt;br /&gt;
[[File:Clickbutt5.png]]&lt;br /&gt;
&lt;br /&gt;
Now Blender has put a cube that is your region in Layer 2. You&amp;#039;ll want to see both layer 1 and 2 at the same time. Do this by holding the shift key down, and clicking on Layer 2.&lt;br /&gt;
&lt;br /&gt;
Now select the cube that is the logic region you just made.&lt;br /&gt;
&lt;br /&gt;
And now rename it something meaningful and helpful, like Button1ClickRegion.&lt;br /&gt;
&lt;br /&gt;
[[File:Clickbuttut2.png]]&lt;br /&gt;
&lt;br /&gt;
Now scale and rotate the object so that it encompasses both the clickable object you made, AND where the avatar is suppose to stand to click on the object. If you don&amp;#039;t do this, you won&amp;#039;t be able to click on the object.&lt;br /&gt;
&lt;br /&gt;
Apply the scale and rotation data by hitting Cntrl-A again.&lt;br /&gt;
&lt;br /&gt;
Now go back to the logic panel, and make the region and actor, and set the bounds to Convex Hull&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;Note: we set the bounds on a region so that the game engine knows when the avatar is  in the region.&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
That&amp;#039;s it for this part. Now it&amp;#039;s off to do scripting......&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===What does this do?===&lt;br /&gt;
&lt;br /&gt;
This is important, and will be hard to cover here, because we have so many different things that we can have the object (or the avatar for that mater) do when you click on something.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;My Object Is a Journal or Linking Book:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
Okay, in that case, you&amp;#039;ll have to add the following to your ALCscript for the object:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
NameMyObject:&lt;br /&gt;
    physical:&lt;br /&gt;
        pinned: true&lt;br /&gt;
    quickscript:&lt;br /&gt;
        simpleclick:&lt;br /&gt;
            pythonfile: MyPythonFileName&lt;br /&gt;
            region: MyClickRegionName&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Where as &amp;quot;NameMyObject&amp;quot; is the name of your clickable object. &amp;quot;MyPythonFileName&amp;quot; will be the name of the python file you have to make for Journals and/or Linking Books. &amp;quot;MyClickRegionName&amp;quot; is the name of the clickable region we made.&lt;br /&gt;
&lt;br /&gt;
The python file is normally the name of the python file that you used for the Dynamic Book Template. &lt;br /&gt;
&lt;br /&gt;
Journal Tut Place Holder&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;It&amp;#039;s a button/lever/whatever and I want the avatar to animate, and something else to happen, and yadda yadda yadda yadda yadda yadda.....&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
Then at THIS point, I&amp;#039;ll point you to my tutorial on using quickscripts for making animations.&lt;br /&gt;
&lt;br /&gt;
Using Quickscripts for Animations Placeholder&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;I&amp;#039;m making a sit region, so the avatar will sit on the &amp;quot;whatever&amp;quot; when it&amp;#039;s clicked on&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
Okay, then I will now point you to the GoW Wiki tutorial on how to make a sit region:&lt;br /&gt;
&lt;br /&gt;
Sitting Regions Placeholder&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
Return To: [[Andy&amp;#039;s Blender Tutorials]]&lt;/div&gt;</summary>
		<author><name>AndyLegate</name></author>
		
	</entry>
</feed>