You are not logged in.

servaas

Intermediate

  • "servaas" started this thread

Posts: 218

Location: Belgium

  • Send private message

1

Monday, April 7th 2014, 7:49pm

simple game

Hello there,

I want to make a simple game as a present for a friend's birthday.
I'll make a basic virtual a tour of a house, but when he want's to go from room A to room B he should enter a code.. From room B to C another code, and so on..
In the last room he will find his present :-)
(codes will given by friends)


So my question is.
- If one clicks on the hotspot to the other room a message should show where he needs to enter a code.
- when he enters the code he enters the other room
- and so one..

Is this complicated or rather easy ?
A basic example : http://www.vanbelleb3d.be/krpano/tour.html

Thanks in advance for your help !

Posts: 1,082

Location: Russia, Kaliningrad

  • Send private message

2

Monday, April 7th 2014, 10:02pm

Hi!
you can get pressed key code http://krpano.com/docu/actions/#keycode
i think you can make "enter code" window this way
Or one more option is virtual keyboard for enter code :)
simple text operations http://krpano.com/docu/actions/#txtadd and so on
Well, seems it not very hard ;)

Andrey *thumbup*
VRAP - desktop VR content player based on krpano.
Common tasks in one place in one click! Discussion thread
DOWNLOAD for MAC
DOWNLOAD for WIN

servaas

Intermediate

  • "servaas" started this thread

Posts: 218

Location: Belgium

  • Send private message

3

Tuesday, April 8th 2014, 2:21pm

Thanks Andrey,

I'll check it out but I'm afraid I'm not a big code expert :-)
It looks like chinese to me for the moment :-)

Servaas

This post has been edited 1 times, last edit by "servaas" (Apr 8th 2014, 2:41pm)


servaas

Intermediate

  • "servaas" started this thread

Posts: 218

Location: Belgium

  • Send private message

4

Tuesday, April 8th 2014, 3:06pm

Hello again,

I'm afraid I don't have a clue where to start.. :-(

I can add the keycode stuff.. but I only can manage to make something appear in the log..
http://www.vanbelleb3d.be/krpano/tour.html
The txtadd function is like a mix of chinese and japanese to me :-)

Don't have a clue how to make a text field where I can fill in a number (ex. 123456) which leads me to the next panorama..

Can you make a small draft or does it take to much time ?

Thanks in advance !

Servaas

servaas

Intermediate

  • "servaas" started this thread

Posts: 218

Location: Belgium

  • Send private message

5

Tuesday, April 8th 2014, 3:37pm

hello,

Il'l make an easy version using codes for my html files...

But if someone has a simple code for this in krpano, please let me know.
Thanks !