Knowledgebase
Storm Palace Hosting > Storm Hosting Help Desk > Knowledgebase

Ask a question:


2 door animation on select

Solution In the door to select.... can also use a pic in this door

;Put the following script in a "Show" spot
ON SELECT
{
linkspot GLOBAL
cmd GLOBAL
"next" cmd =
0 linkspot SETALARM
}

set to
door images above... nothing
type ... passage

spot ID 5
state 0

=============

put in the animation door set to
door images .. nothing
type ... normal
don't move here

;Put the following script in a spot.
;Put the pictures you want to be shown in the same spot.
ON ENTER
{
linkspot GLOBAL ME linkspot =
0 ME SETSPOTSTATELOCAL
}
ON ALARM
{
cmd GLOBAL
;***Set number of pictures here***
2 nbrpics =
;***End of data***
{ ME GETSPOTSTATE 1 + nbrpics % ME SETSPOTSTATELOCAL } cmd "next" == IF
{ ME GETSPOTSTATE 1 - nbrpics + nbrpictures % ME SETSPOTSTATELOCAL } cmd "previous" == IF
}
 
Was this article helpful? yes / no
Article details
Article ID: 392
Category: Scripts
Date added: 10-11-2017 07:07:07
Views: 94
Rating (Votes): Article rated 5.0/5.0 (1)

 
<< Go back

Powered by Help Desk Software HESK™