Moderators: time-killer-games, Vengeance66, Candle, reneuend, GM-Support
pennsteve wrote:With flash you need to know some programming I think.
Mystery wrote:Hi marina,
Unfortunately you can't create draggable hotspots. You can only drag items from your inventory onto objects.
mercedes wrote:As for the puzzle..drag and drop puzzle..sounds like u want to have the map put together over an existing map..? basically fill in the pieces..THey have to put them in their right places..? Just wondering if thats what it is..
mercedes wrote: Also would a jigsaw serve your purposes as well..? A real jigsaw puzzle the player could put together..Cause there are some online u can download for free and will create executables..Although they look like jigsaw though..actual puzzle pieces..
Thanks for your reply. I don't remember in detail the text of the error message but later I'll write the code again and will report you what it says exactly. Anyway I tried all in one line and in separate lines as well...
possible for you to post the links?
I also downloaded Keyguard and think I'll have a lot to study since now on
mercedes wrote:To post pictures..make sure its one at a time...jpg image is best..and only 5 per post- 1 per attachment..where u hit "browse" hope that helps..
mercedes wrote:..Trial and error i guess..
If mappa1=1 AND mappa2=1 AND mappa3=1 AND mappa4=1 AND mappa5=1 AND mappa6=1 AND mappa7=1 AND mappa8=1 AND mappa9=1 Then Action.GoToFrame "mappa giardino"
wrong=0
For i=1 to 9
Set X=Getvariablereferencefromname("mappa"+cstr(i))
If X.Value<>1 then wrong=1
next
If wrong=1 then Action.Message "Wrong" else Action.Gotoframe "mappa giardino"
or the ampersand--[Think thats how it spelled..lol] symbol..Very Happy
NUMERICAL KEYPAD PUZZLE from Riobros76's example -
This puzzle uses an image of a keypad with nine numbered keys and an enter key. The code must be entered in order before the enter key is pushed or else an "access denied" frame is reached. If the numbers are pushed in the correct sequence, the "puzzle solved" frame will be reached.
The correct keypad code for this example is -->1,2,3
1. From the Project Menu list, left of screen, select the "VBS Variable" option and add a new integer variable for each of your buttons on the pad. In this case T1, T2, T3... T9, and Enter.
2. From the Project Menu list, left of screen, select the "VBS Procedures" option and add:
Code:
'ROSARIO SANCETTA CONTROLLER
Sub Controller()
If T1=1 AND T2=1 AND T3=1 and Enter=1 THEN GoToFrame "Solid05"
If T0=1 OR T4=1 OR T5=1 OR T6=1 OR T7=1 OR T8=1 OR T9=1 THEN GoToFrame "INITIALIZE"
End Sub
The top line means - If buttons T1 and T2 and T3 and Enter have been pushed in that order, then go to the "Solid05"/puzzle solved frame (open door, lit up keypad, or whatever). If any other key has been pushed, go to "INITIALIZE" (= the "access denied") frame.
2. Create a new "blank frame" and name it. This will be your "reset puzzle" frame if thw wrong code is entered. For this example, this frame is named "INITIALIZE". On the blank frame, create a hotspot and select the image of your keypad for it.
Frame Properties Tab -->
[check] Enable Timer...
Seconds 1
Destination Frame "Solid01"
Audio Tab -->
Play a short sound that indicates "access denied" or "error"
Fade duration 2 seconds.
Advanced Tab -->
[check] Execute a VBS script immediately.... etc.
Add this Code:
T1=0
T2=0
T3=0
T4=0
T5=0
T6=0
T7=0
T8=0
T9=0
T0=0
ENTER=0
3. Create a new "blank frame" and name it. For this example, this first frame is named "Solid01". On the blank frame, create a hotspot and select the image of your keypad for it. Place the keypad in exactly the same position as you did in the "INITIALIZE" frame.
Create a new hotspot over each of your numerical keys. For each hotspot, set the variable to switch from 0 to 1 when the hotspot button is pushed by selecting the variables tab and select -
[check]Change the value of one or more variables when the user clicks this hotspot.
Variables to 0 -
(none)
Variables to 1 -
T1 //or whatever hotspot key you are over.
On the General tab, change the cursor for each hotspot.
On the Audio tab for each hotspot, add a sound for sound of the button being pushed.
4. Create a hotspot over the "Enter" key. Set the variable to switch from 0 to 1 when the hotspot button is pushed by selecting the variables tab and select -
[check]Change the value of one or more variables when the user clicks this hotspot.
Variables to 0 -
(none)
Variables to 1 -
Enter
On the Advanced tab add this code -->
If T0=1 OR T4=1 OR T5=1 OR T6=1 OR T7=1 OR T8=1 OR T9=1 THEN GoToFrame "INITIALIZE"
This means that if any key other than 1, 2,or 3 (your combination) has been pushed, go to "the access denied" frame.
On the Audio tab for the hotspot, add a sound for the sound of the enter button being pushed.
On the General tab, under Hyperlink, check "Go to Another Frame" and select your "INITIALIZE" frame.
5. Duplicate this frame three more times. For this example the original frame is named "Solid01" and these duplicate frames are named "Solid02", "Solid03", and "Solid04".
6. Open frame "Solid01" and open the Hotspot Properties (right click) for the first number of the code, in this example key #1. On the General tab, under Hyperlink, check "Go to Another Frame" and select your "Solid2" frame.
7. Open frame "Solid02" and open the Hotspot Properties for the second number of the code, in this example key #2. On the General tab, under Hyperlink, check "Go to Another Frame" and select your "Solid3" frame.
8. Open frame "Solid03" and open the Hotspot Properties for the third number of the code, in this example key #3. On the General tab, under Hyperlink, check "Go to Another Frame" and select your "Solid4" frame.
Open the Hotspot Properties for the "Enter" key. Open the Advanced tab and remove the code there, just erase it.
9. Open frame "Solid04" and open the Hotspot Properties for the third number of the code, in this example key #3. On the General tab, under Hyperlink, check "Go to Another Frame" and select your "Solid4" frame.
Open the Hotspot Properties for the "Enter" key. Open the Advanced tab and replace the code that's there with the single word "Controller".
10. Create a new "blank frame" and name it. This will be your "access granted"/"puzzle solved" frame if the correct code has been entered. For this example, this frame is named "Solid05". On the blank frame, create a hotspot and select the image of your keypad for it. For this frame you may want to have the key light up or something to indicate "success".
Frame Properties Tab -->
[check] Enable Timer...
Seconds 1
Destination Frame "****"
Replace *** in the last line above with the name of your open door frame or box opened frame or whatever the keypad opened.
Audio Tab -->
Play a short sound that indicates "access granted" or "success".
Fade duration 2 seconds.
Return to How to make pictures, sounds, and videos
Users browsing this forum: No registered users and 0 guests