EDIT*Solved--Code for Image puzzle

This forum is meant for requesting technical support or reporting bugs.

Moderators: time-killer-games, Vengeance66, Candle, reneuend, GM-Support

EDIT*Solved--Code for Image puzzle

Postby mercedes » Sun Aug 10, 2008 5:22 am

Hi there...I am having no luck with any of my puzzles..:(.. and my memory gets mixed up..Argg..I need to say it out loud in hopes someone can help me.....:P

I have 9 hotspots and I need them to all load a picture----- They are blank to begin with...


Out of the 9 hotspots[pictures] that are there...Only 6 are the right pictures..

They don't have to be pressed in any order..but they have to be the right 6 pictures..Left remaining...

When the user is done...there will be only 6 pictures

...I assume i have to have a check button..?



Can someone help me please..


Thanks..!~


Peace
Last edited by mercedes on Fri Aug 15, 2008 3:15 am, edited 4 times in total.
User avatar
mercedes
VIP
 
Posts: 2460
Joined: Sun Mar 09, 2008 10:43 pm
Location: Canada..~

Postby Candle » Sun Aug 10, 2008 7:13 am

Is this a puzzle?
What kind of puzzle?
What does it do in the game?
Maybe this could help us help you.
Please don't PM me questions, ask here in the forums!
``````````````
Between grand theft and a legal fee, there only stands a law degree.
User avatar
Candle
Administrator
 
Posts: 3077
Joined: Sat Feb 07, 2004 2:21 am
Location: Rudy's Bar

Postby mercedes » Sun Aug 10, 2008 7:31 am

Ok..picture a TIC-TAC-TOE board...but blank to start with..

All of the X's can be loaded in the squares...

The user has to have only 6 X's pictures remaining..The Right ones...so The pictures of X's lets say, have to be able to dissapear when clicked or reappear again if clicked..

BUT the user has to have the right ones left remaining and I would think a check button to make sure the right ones are left remaining...

There is no special order they have to be clicked or anything..just the right ones left remaining..


Does that make better sense..:? and yes its a puzzle..:P

I get something into my head and run with it..but man is hard..LOL..I over think things..all the time..which is why i confuse myself more...and others..:P


I can post a picture if that would be easier...



Peace~
User avatar
mercedes
VIP
 
Posts: 2460
Joined: Sun Mar 09, 2008 10:43 pm
Location: Canada..~

Postby Candle » Sun Aug 10, 2008 8:14 am

Take a look at this and see if it would work for you.
I only did two but should give you how to do the rest .
Attachments
tictactoe.zip
(164.79 KiB) Downloaded 293 times
Please don't PM me questions, ask here in the forums!
``````````````
Between grand theft and a legal fee, there only stands a law degree.
User avatar
Candle
Administrator
 
Posts: 3077
Joined: Sat Feb 07, 2004 2:21 am
Location: Rudy's Bar

Postby mercedes » Sun Aug 10, 2008 8:31 am

Hi there...neat..!~

It's nice!~ but not quite what im looking for.. i don't think..I don't have O's..only X's...And the way its set up..i would want the user to click on the hotspot itself and have the X dissapear and reapear when clicked..and be left with 6X's on the board..but the right ones out of 9.. It's not the game of tic-tac-toe..Although this has given me a different idea for another puzzle i'm working on...:D which is awesome..!




By the way..is that a picture box control u used? how did you do that..? with the title at the top and menus..?


Peace!
User avatar
mercedes
VIP
 
Posts: 2460
Joined: Sun Mar 09, 2008 10:43 pm
Location: Canada..~

Postby Candle » Sun Aug 10, 2008 8:35 am

screen grab
Attachments
tictactoe.GIF
tictactoe.GIF (18.87 KiB) Viewed 3964 times
Please don't PM me questions, ask here in the forums!
``````````````
Between grand theft and a legal fee, there only stands a law degree.
User avatar
Candle
Administrator
 
Posts: 3077
Joined: Sat Feb 07, 2004 2:21 am
Location: Rudy's Bar

Postby Lyberodoggy » Sun Aug 10, 2008 9:34 am

User avatar
Lyberodoggy
Administrator
 
Posts: 2526
Joined: Sat Feb 17, 2007 3:31 pm
Location: Athens

Postby mercedes » Tue Aug 12, 2008 5:17 am

Here is what I have so far..
This is so the all the boxes goes from X--to Blank--and back again..it loads the picture then blank continuously....There are 9 boxes..[Hotspots]. There is no special order in which the boxes[Need be clicked] There has to be 6 out of 9 boxes with X's for the puzzle to be right..The right 6 out of nine.....that's all..

Code: Select all
box_1 = box_1 - 1
If box_1 = -1 Then Action.LoadAPicture Hotspot(4), "X-TIC-TAC-TOE.JPG"
If box_1 = -2 Then Action.LoadAPicture Hotspot(4), ""
If box_1 = -2 Then box_1 = 0


Doesn't look like anyone is going to answer this one.. :cry:

I don't know what to put in the "Check" button...man i really didn't think this one would be that hard..nothing im doing is working..there is never anyone here.... :(
User avatar
mercedes
VIP
 
Posts: 2460
Joined: Sun Mar 09, 2008 10:43 pm
Location: Canada..~

Postby Lyberodoggy » Wed Aug 13, 2008 6:48 pm

Sorry for the delay.
As I have already responded in the PM I sent you, this will do:


Code: Select all
box_1 = box_1 - 1
If box_1 = -1 Then
Action.LoadAPicture Hotspot(4), "X-TIC-TAC-TOE.JPG"
totalXs=totalXs+1
Else If box_1 = -2 Then
Action.LoadAPicture Hotspot(4), ""
totalXs=totalXs-1
end if
end if
If box_1 = -2 Then box_1 = 0


check for the right answer with:
Code: Select all
If TotalXs=6 then
Action.Message "You Win"
end if
User avatar
Lyberodoggy
Administrator
 
Posts: 2526
Joined: Sat Feb 17, 2007 3:31 pm
Location: Athens

Postby mercedes » Wed Aug 13, 2008 7:57 pm

YES..!! Thanks that works..I'm so happy...I was on that for close to 7 days....Thanks Kiddo..~!


*Edit* Solved :D

Added a totalwrongs variable
THanks Kid;D


Peace~
User avatar
mercedes
VIP
 
Posts: 2460
Joined: Sun Mar 09, 2008 10:43 pm
Location: Canada..~


Return to Adventure Maker Technical Support and Bug Reports

Who is online

Users browsing this forum: No registered users and 0 guests