Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

FPSC Classic Scripts / Point and click

Author
Message
Payam
15
Years of Service
User Offline
Joined: 28th Mar 2009
Location:
Posted: 14th Feb 2011 11:16
Hi,
I just have an idea about a "Point and click"game but I just don't know how to script one of important one.

I made a trigger in each room which freeze the player with rotate.

And for each door I have to make a script which do this(I need this one):
When the mouse goes over the door the hud change(I will make an arrow hud for it) then by clicking the mouse or any key on the keyboard the player will teleport to a trigger in if used.
And the distance for the door should be long enough to use it from the middle of a saloon.
If it opens the door first the teleports the player it will be better but if it's hard I can ignore opening the door.

My current version is V1.17 and I might use RPG mod.

Have our guns was a mistake!!!

I am PaYaM
Payam
15
Years of Service
User Offline
Joined: 28th Mar 2009
Location:
Posted: 14th Feb 2011 13:24 Edited at: 14th Feb 2011 13:30
I made it



But it wont show any hud,and it wont open the door and no sounds.if you can do it just update my script and put it here.

Actually it just do what I want without any details.

*Edit:
You can put the door sound on the trigger so when you teleport to it it means that you entered the zone and it will play the door sound.
So just the hud script is needed and maybe opening the door.

Have our guns was a mistake!!!

I am PaYaM
The Storyteller 01
15
Years of Service
User Offline
Joined: 11th May 2009
Location: On a silent hill in dead space
Posted: 14th Feb 2011 14:21
Have a look at these:
http://forum.thegamecreators.com/?m=forum_view&t=171157&b=23

In case you find my grammar and spelling weird ---> native German speaker ^^
Payam
15
Years of Service
User Offline
Joined: 28th Mar 2009
Location:
Posted: 15th Feb 2011 10:43
Thank you The Storyteller 01 but I have a problem with it.

When the first time my pointer goes over the door the hud became appear but after that it wont disappear anyway.
If it was like C++ I could use If and Else like this:

But it's not like C++ and I can't do it right.
Here is my code(if anyone could fix it please put it here):


Have our guns was a mistake!!!

I am PaYaM
Delusional Games
14
Years of Service
User Offline
Joined: 2nd Oct 2010
Location: Serbia, Sometimes Finland
Posted: 15th Feb 2011 12:12 Edited at: 15th Feb 2011 13:33
Well this is not c++, its a lot lot lot, easier than ``++``
But lets give this code of your a try: eh?:



Thats something like what I used for Bitter Fruit, if crosshair was in front of every object the Hud had to be changed to show magnifying glass icon so you could click on F to investigate.

That is not dead which can eternal lie. And with strange aeons even death may die.
H.P.L
Payam
15
Years of Service
User Offline
Joined: 28th Mar 2009
Location:
Posted: 15th Feb 2011 14:14
Thanks 'Delusional Games' But:
The teleport works good like before and the script is more near to finish and the hud will disappear if the pointer moves to somewhere else but if you put the pointer on the door again it wont appear for the second or third or... time.

I just tried to fix this but I couldn't.
I'm waiting for some helps.

Have our guns was a mistake!!!

I am PaYaM
Delusional Games
14
Years of Service
User Offline
Joined: 2nd Oct 2010
Location: Serbia, Sometimes Finland
Posted: 15th Feb 2011 15:01
Try adding the line:

to the script.
So if pickobject=1 then hud appears
else if pickobject=0 no HUD for you

That is not dead which can eternal lie. And with strange aeons even death may die.
H.P.L
Payam
15
Years of Service
User Offline
Joined: 28th Mar 2009
Location:
Posted: 15th Feb 2011 21:09
Yesssss....

So the final script is like this:


Now anyone can use it.

And after all thanks "Delusional Games" and "The Storyteller 01".

Have our guns was a mistake!!!

I am PaYaM

Login to post a reply

Server time is: 2024-11-24 12:31:46
Your offset time is: 2024-11-24 12:31:46