Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem


That's why I first make that video to show how to remove items from scene after you click them using image and touch area because :
1. Using button means extra work for me because I have to put fix="true" for every single image button there that I use as items. So that's why on point 2
2. By using image I can easily remove the image from screen using freeimage and also, by using image I can easily give them a number of layer which is really important later when showing inventory screen. You see, because I ma using return, I can't use change background image. Why? If I use change bg, when I use return the bg will change into one from inventory right? But if I use remove bg before return, the bg will be removed when I close the inventory screen. And I have no intention to make a long function just to check what scene I am so I can change bg to that scene before I use return. No, no way I will do that. Which is why the inventory screen is using image too as the bg.
So that's why, as long as I make the inventory screen bg image on layer higher than any other image items the bg problems is solved.
Ok, so based on the code above from video that you show, basically first I just declared all variable that I used. It's 3 because I have 2 items on scene and I need another one to check if all items have been clicked or not. So if you have say, 100 items on scene that you want user to click before they move on then make it 100+1 variable.
But alternatively, you can just make 100 variable and put some button saying "EXIT THE ROOM" so user didn't have to click all 100 items and can just leave when they feels they have got enough items.
Then I make a macro for the items, since I have gems and lollipop I just name them 'gem' and 'loli' so I can easily remember which one for the items.
And as you can see they are basically the same, if the variable that represent them [loli for lollipop, gem for gem] is 1 then show the image and put the clickable area on top of them that point to label that I call RemoveLoli and RemoveGem.
Then after that I make another check if the variable that show all items have been clicked or not is 2 or not because on the label RemoveLoli and RemoveGem I make so that each click increase the value of the check variable. So again, if you have 100 items then make it
And that's all.
Sorry that my video tutorial all have no sounds. I have no microphone and English isn't my first language so I have no confidence anyway speaking English on video tutorial. I have see too many video tutorial that got criticized because well, the user isn't speaking well enough etc so I probably will never make any video tutorial with voice.
[locate x=247 y=151]
[clickable width=150 height=150.
Varia ble x, y, widht and height shoukd i change too based where the item will be place?? And for height & width should i change it? Because idk how to see status for height and widht
Yes, you have to change x and y according to where your image is.
And I didn't put the height and width because I already set the size before. I like to do that so I know before hand where exactly they will fit on the scene.
You can see where to put the height and width from here : http://tyranobuilder.com/tyranoscript-tags-reference/#image
You only need to change the width and height if you feels they are too small or too big for the scene though so it's up to you :)