Lock-combination

This forum is meant for posting anything related to Adventure Maker that doesn't fit in the other forums.Please post technical questions in the Technical Support Forum!

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

Lock-combination

Postby mercedes » Wed Oct 29, 2008 10:30 am

Hi there..:)

I was wondering if anyone might have an idea on how i can make combination lock look realistic..in terms of user spinning it from left to right and right to left..with Script..~

A lock like what you might see on a locker..:)

Any input is appreciated thanks..~!


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

Postby Lyberodoggy » Wed Oct 29, 2008 1:44 pm

What about using KG to detect mouse down and "drag" the combination switch?
User avatar
Lyberodoggy
Administrator
 
Posts: 2526
Joined: Sat Feb 17, 2007 3:31 pm
Location: Athens

Postby mercedes » Wed Oct 29, 2008 9:41 pm

So change pics with each drag u mean.. on mouse UP...?


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

Postby Lyberodoggy » Wed Oct 29, 2008 10:16 pm

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

Postby juhuwoorps » Wed Oct 29, 2008 10:22 pm

Perhaps this can help.I'm not sure if it is what you want

http://www.swuttig.de/games/lock.zip
juhuwoorps
Code Master
 
Posts: 622
Joined: Tue Jul 08, 2008 3:13 pm

Postby Lyberodoggy » Wed Oct 29, 2008 10:32 pm

Nice one juhuwoorps but you could fix your code a little bit:
instead of
Code: Select all
If var<>3 then opposite actions else actions
you could use
Code: Select all
If var=3 then actions else opposite actions
User avatar
Lyberodoggy
Administrator
 
Posts: 2526
Joined: Sat Feb 17, 2007 3:31 pm
Location: Athens

Postby mercedes » Wed Oct 29, 2008 11:10 pm

Juhuwoorps..what is the combo answer..? so i can see what it looks like when it's done..:)

Edit....Never mind ..I found it..:)

Thanks for that...cool stuff..it will help me !~
User avatar
mercedes
VIP
 
Posts: 2460
Joined: Sun Mar 09, 2008 10:43 pm
Location: Canada..~

Postby chickens1127 » Wed Oct 29, 2008 11:28 pm

I have no idea about all this AM complicated stuff.
Hi... It's Chickens1127...
CHINCHILLAS ROCK!

RIP Crazygamemaker
User avatar
chickens1127
AM Magazine Moderator
 
Posts: 898
Joined: Thu Nov 22, 2007 12:49 am
Location: Awsomeville, USA

Postby mercedes » Thu Oct 30, 2008 12:06 am

Hi there..Ok..i need help now with what the lock should look like..Either idea won't work with what i had planned.

I like the idea of the numbers changing within AM though..as opposed to me drawing out numbers..

Any ideas on what a lock might look like..the combo one..won't work now..:(

Was kinda hoping for something round...not keypad like..Which is what i think this is going to be..:(


thanks ..:)

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

Postby Lyberodoggy » Thu Oct 30, 2008 2:33 pm

You can draw a round-shaped object, import it as a hotspot and make a text over it which will update depending on the case
select case number
case 1
Text(1).caption=1
etc
end select
User avatar
Lyberodoggy
Administrator
 
Posts: 2526
Joined: Sat Feb 17, 2007 3:31 pm
Location: Athens

Postby mercedes » Thu Oct 30, 2008 7:55 pm

OH...! i think i know what you mean...You mean like have the numbers update..by pressing a button...Can i go either left or right..can i do that though..?...So the numbers are like a combo lock..so the numbers can go from 0 at the top..and to the right..would give me..1-2-3-4-5-6 and to the left..it would give me..59-58-57-56-55-

Is that possible..? THanks..!~ this sounds perfect if this can be done..

Although is that what u had in mind..?

What would the image look like you had in mind..?

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

Postby Lyberodoggy » Thu Oct 30, 2008 9:58 pm

On the left button:

Code: Select all
sth=converttonumber(Text(1).caption)
If sth>0 then
sth=sth-1
text(1).caption=sth
end if


On the right one:

Code: Select all
sth=converttonumber(Text(1).caption)
If sth<upperlimit then
sth=sth+1
text(1).caption=sth
end if


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

Postby mercedes » Thu Oct 30, 2008 10:09 pm

Perfect..!~ I'll try this..and tell me if you think this will work with what u have in mind..

see Attachment~ will look something like that..doing it fast here..

Would you think the numbers should appear in the center or where they should appear..although making those lines and the numbers there are hard..ugh..Not sure of an easy way to do it that way..

Is this what you had pictured..?
Attachments
Safe.JPG.jpg
Safe.JPG.jpg (25.29 KiB) Viewed 4394 times
Last edited by mercedes on Sun Dec 21, 2008 1:02 pm, edited 1 time in total.
User avatar
mercedes
VIP
 
Posts: 2460
Joined: Sun Mar 09, 2008 10:43 pm
Location: Canada..~

Postby Lyberodoggy » Thu Oct 30, 2008 10:21 pm

Just use right click to create a text instead of using the textbox
User avatar
Lyberodoggy
Administrator
 
Posts: 2526
Joined: Sat Feb 17, 2007 3:31 pm
Location: Athens


Return to Adventure Maker General Discussion

Who is online

Users browsing this forum: No registered users and 0 guests