Re-use of slots inventory

Hi all, been building a point and click game and encountered a problem with my inventory system that is

When an item is added to the inventory and used, another re-will not use it under.

Code:

Place one instane of InvMC on the stage:

this.attachMovie ('inventoryMC', 'invMC', depth);

setProperty ("invMC", _x, "30.65");

setProperty ("invMC", FLF, "665");

within the invMC declare an array to manage 20 slots:

aryInv = new Array (19);

for (i = 0; i < 20; i ++) {}

aryInv [i] = 'none. '

}

20 place of instances of 'slotMC' in MC inventory, number them "inv1", "inv." etc. Then

on each of them put this code changing t = 0 to t = 1, t = 2, etc.:

onClipEvent (enterFrame) {}

t = 0;

If (_root.invMC.aryInv [t] == 'none') {}

gotoAndStop (1);

}

If (_root.invMC.aryInv [t] == 'key1') {}

gotoAndStop (2);

}

If (_root.invMC.aryInv [t] == 'Key2') {}

gotoAndStop (3);

}

If (_root.invMC.aryInv [t] == 'key3') {}

gotoAndStop (4);

}

If (_root.invMC.aryInv [t] == 'rat') {}

gotoAndStop (5);

}

If (_root.invMC.aryInv [t] == 'bell') {}

gotoAndStop (6);

}

If (_root.invMC.aryInv [t] == 'book') {}

gotoAndStop (7);

}

If (_root.invMC.aryInv [t] == 'candle') {}

gotoAndStop (8);

}

If (_root.invMC.aryInv [t] == 'sword') {}

gotoAndStop (9);

}

If (_root.invMC.aryInv [t] == 'match') {}

gotoAndStop (10);

}

If (_root.invMC.aryInv [t] == 'pipe') {}

gotoAndStop (11);

}

If (_root.invMC.aryInv [t] == 'stone key') {}

gotoAndStop (12);

}

If (_root.invMC.aryInv [t] == 'skull') {}

gotoAndStop (13).

}

}

Put 20 images in 'slotMC' with an MC of each element on the frames. Put this code on the STM:

(slightly different targets etc. for each element).

on (release) {}

If (_global.key1vis == 1) {}

startDrag ("", true);

_Global.key1vis = 2;

} Else if (this.hitTest (Object (this._parent) .sqReturnTarget)) {}

stopDrag();

setProperty (this, _x, 15.95);

setProperty (this, FLF, 16 h 45);

_Global.key1vis = 1;

} Else if (this.hitTest (Object (_root) .gateKeyTarget)) {}

this.unloadMovie ();

_Global.key1vis = 2;

setProperty (_root.gateKeyTarget, _visible, 0);

_root.gotoAndStop ("open");

_Global.castleGatesOpen = 2;

}

}

It works fine - except each element takes the next digital slot, even if the previous was 'released' by the element

the user has got rid of - so what do I need to allow exhausted acted "slots"?

Any advice appreciated - files available if it helps!

Best wishes

Tony

Kind of morphine, pure oxygen and Rivoroxabin are games with my head (pleasantly overall), but it is impossible to focus on anything for a long time then

I did what computers do when it is quite--I missed in 1970 and just thought to if/else

This works. It's old skool and AS3 fans would say "awkward" and "clumsy" but... it works perfectly and it is easy to manipulate through the game.

So back to an element, you find, click on it (it is a button) and the button, it says:

on (release) {}

If (slot1._currentframe == 1) {}

SLOT1.gotoAndStop ("Sword");

} Else if (slot2._currentframe == 1) {}

SLOT2.gotoAndStop ("Sword");

} Else if (slot3._currentframe == 1) {}

SLOT3.gotoAndStop ("Sword");

} Else if (slot4._currentframe == 1) {}

SLOT4.gotoAndStop ("Sword");

} Else if (slot5._currentframe == 1) {}

slot5.gotoAndStop ("Sword");

} Else if (slot6._currentframe == 1) {}

slot6.gotoAndStop ("Sword");

} Else if (slot7._currentframe == 1) {}

Slot7.gotoAndStop ("Sword");

} Else if (slot8._currentframe == 1) {}

slot8.gotoAndStop ("Sword");

}

}

[[ If anyone wants to write me a loop to do this more elegant, I would appreciate it because even if I have the brain power to know should be ]]

be a loop, there's not enough to remove :)]]

Set some global variables to make it visible and then went once they are used and we are far away...

To use an item, try it on a 'target' which may or may not work and return it to the inventory if it is not, the MC version of

the element (same photo) is inside a "slotMC" on the main timeline (slot1, slot2, etc, that have a frame to represent each item) have this

code on them so that they behave like buttons:

on (release) {}

If (_global.swordVis == 1) {}

startDrag("");

_Global.swordVis = 2;

} Else if (this.hitTest (Object (this._parent) .returnMC)) {}

stopDrag();

setProperty (this, _x, 0.5);

setProperty (this, FLF,-3,75);

_Global.swordVis = 1;

} Else if (this.hitTest (Object (_root) .killSwordMC)) {}

_Global.swordVis = 2;

setProperty (.killSwordMC of the object (_root), _visible, 0);

This._parent.gotoAndStop (1);

}

}

Without tables, without functions and once the first batch is reduced to a loop that is not a lot of code.

The test version 'empty' of which includes nothing else that the basic elements to make it work rolls as a .swf to 4 k

in my day, before the lightning broadband everywhere, was important.

So I leave to go to games with my new morphione working in a castle - crazy game when it's done I'll post a link here so all and various

can try to break :)

Best wishes

(and never smoke cigarettes or you will end up by plenty of tubes in a hospital, feeling very confused and frustrated about stuff you used to see back)

Tony

Tags: Adobe Animate

Similar Questions

  • Can we use WWAN SLOT to add additional storage in T430S

    Hello people,

    I just wanted to see if any body tried this before.

    I ordered T430S with 128 GB SSD and writable DVD in the Bay.

    I was wondering if I can use the WWAN slot to add any additional storage?

    Appreciate any insight/suggestions

    You can add an mSATA SSD of desired capability, and it will be displayed in Windows as another drive.

  • EliteBook 8760w: can I put my EliteBook 8760w with an mSATA SSD hard drive using the slot mSATA

    I wonder if it should be possible to use an mSATA SSD by installing it in the slot mSATA?

    Product number: LG673EA #AK8 (EliteBook 8760w)

    I inserted an mSATA SSD and it fits, but after booting, the computer gives the following message:

    No wireless module supported

    The system has detected the wireless installed in the system module is not supported and disabled.

    WWAN Module ID (703)

    I hope it's just a matter of configuration/drivers, etc...

    No, it's a physical barrier. Is the accommodation that you turn the player mSATA in p.50 indicated on the manual here? :

    Repair manuals

    This port is a card WWAN (cellular modem) only. Your laptop is the Intel Core 2d era generation and utilization of disks mSATA even for cache acceleration did not really catch up to the 3rd generation. The circuits to see and make use of the mSATA drive is simply not present in this laptop. I'm sorry.

    If it's 'the Answer' please click on 'Accept as Solution' to help others find it.

  • HP Elitebook 8560w: upgrade my ram and the correct use of slots

    Hello - my first post!

    I just bought HP 8560w refurbished seller.  It has a quad core processor and four ram slots.  I can post the SN and product number if it helps with my request.

    I want to max out my ram without disturbing the keyboard.  I currently have 4 x 4 ram installed so that four locations are used.  My machine will support a maximum of 32 of ram.

    Here is the query - I can remove the 2 ram sticks of the slots I can easily see when I remove the back (I guess these are slots 3 & 4) and replace them with 2 sticks 8 ram each?

    It would give me a total of 24 ram - 2 x 4 under the keyboard (slots 1 & 2) and 2 x 8 in two other passers-by.

    This upgrade would be OK and be recognized by the system?

    Thank you, Russ.

    Hi, Russ:

    It seems that you can according to the maintenance manual.

    http://h20628.www2.HP.com/km-ext/kmcsdirect/emr_na-c03424153-1.PDF

    He says that one of the compartment of the expansion memory slot should be filled with a chip to add a slot 2.

    It also says the same thing about the locations of primary memory under the KB.

    See Chapter 4, page 51.

  • E530 Lenovo. The graphics-upgradeoption GT635M use the mSATA slot?

    Hello community,

    When I chose the upgradeoptions for the E530 I'll buy something confuses me. The graphics card has been described as WWAN and capable mSATA. The question is, the graphics card uses the slot mSATA? It would be a shame, because I wanted to build in an ssd. I contacted my local support and they told me, he would. On the other hand... they were absolutely sure that the Intel HD IGP use the mSATA-slot, that would be... strange...

    So.Has anyone of you you have experience with the GT635M in the E530?

    Oh, and in the store there are two different E530. One with a resolution of 1366 x 768 and the other with the HD screen + with a resolution of 1600 x 900. Why Lenovo does not heat wave-red and blue Artic cover version of 1366 x 768 and more importantly for me, why it does not allow coverage of midnight-black on the version 1600 x 900? They're both the same size! And I think that its importance for the cover of the laptop what resolution got the screen. Is it possible to change the lid without breach of the warranty or changing the order?

    (It has not been sent or built still)

    Thanks for your replies in advance.

    MfG MrBlati

    (ps: in English is not my native language, I want to apologize a writing /-spelling in the text )

    about the cover of the screen, I'm not too sure. But I had asked this question for some clients Australian just now, the response I got from Lenovo was that it was the configuration of configuration that they possessed, that they could not change their system.

    My theory is that Lenovo has limited display 1600 x 900 coverage option in order to simplify the system of inventory they had. As the upper display resolution would be selected only by a small group of customers.

  • Satellite L350 - how to use the express card slot?

    Can someone tell me about the L350 what means the express card slot?

    Only, I'm used to having the SD and memory stick cards.
    Is there an express card to use with this or can get you an adapter for other cards?

    Thank you smokeyb

    Hello

    You should look in the user manual. You will find lots of information about the batch of express cards.

    The express card slot allows you to install ExpressCard/34 or ExpressCard/54 to extend functionality.
    For example, the external WiFi cards, USB cards, etc. use this slot machine.

    Welcome them

  • Satellite L500 - 20 X - slot for SIM card be used?

    Hello
    yesterday, I removed my L500-20 x power, here I found a location for Sim cards and now I would like to know if I can use this slot machine?
    This slot machine is not mentioned in the user manual.

    So long
    Monkey

    Hi monkey666,

    Normally you can answer this question yourself. I checked the specs on the Toshiba site on your laptop model and there is no 3G support/modem.

    That means you need a key USB 3 G modem as Akuma wrote. Therefore, contact your mobile phone dealer and ask such an external modem. There are a lot of offers on the market.

  • By using the VM hostname instead of the name of the inventory

    Our Organization has standardized host in any of the company names, but the names used in the inventory of VMware are not standardized and sometimes have duplicate names. Is there a way to force Foglight to use the host name of the system against the name of the inventory? For example, when I go to the dashboard virtual environment and watch VM, I would like to see the host name, not the name provided by the inventory. Is it possible to do this?

    We use Foglight for virtualization 6.8. Thank you!

    There is, unfortunately, not an easy way to do it, because we use the full name VM very strongly and it is hard-coded.  You still looking for a machine by FQDN/NETBIOS name and pass to the virtual machine like that.

  • Can I use a module of RAM 2 GB in Satellite M105-S1021

    My TECRA stopped with the BSoD (on another thread) and I had to leave my old Satellite M105 - S1021 and try and get it going again.

    First problem was running PRO XP without service pack and it was a * LEGAL * XP home upgrade - tries to install the SP, I received the product key was not valid message - cannot find the CD of XP Pro I used I called MS Support (sounded like in India) and vain - I expected to be provided with a valid key BUT NO! Why MS play the stupid guys like that on a software product is stupid IMHO and brief overview just puts a bad taste in the mouth and make me want to go to UBUNTU LINUX.

    So I had to search in a room full of hardware and PC (sad hoarder I have still a few BACK/WIN 95/98 machines) until I found a CD of XP PRO with a product key if I had XP PRO installed on this Satellite laptop and installed the latest SP

    BUT then I discovered that this laptop as well as it having previously PRO XP without a service Pack installed, there only 448 MB of RAM installed.

    Looking at the memory Crucial site they recommend an upgrade to 2 GB BUT it's 1 GB x 2. Opening the door of memory I see that I don't have that one not slot the two connectors.
    An upgrade to 2GB created using two modules of 1 GB Mem is therefore not possible.

    So my Question is:
    Can I upgrade to 2 GB using a slot OR slots on this L/T only able to take modules 1 GB Mem - I guess as I can / could get a module DDR2 PC2 - 5300 Mem.

    OR only can I put in a single module of 1 GB Mem.

    Can you please first tell us we are discussing here on laptop Tecra or your old Satellite M105 - S1021?

    For the Satellite M105-S1021 I found follow the news:

    Memory5
    -Configured with 512 MB DDR2 533 MHz SDRAM (using a memory module, a memory xpansion open housing)
    -256MB (min) / 2048MB (max), 512 MB of memory accessible service more accessible by the user memory available slot for 256 MB, 512 MB or 1024 MB DDR2 PC4200 533 MHz SDRAM.

    Compatible memory modules:
    PA3412U - 2M 51 Toshiba 512 MB DDR2-533 memory Kit
    PA3411U-2M1G Toshiba 1 GB memory DDR2 - 533 Kit

  • No satellite S2450 ADSL MODEM INSTALLATION PROB. NO FREE PCI SLOT

    I have a Satellite S2450 - 101 with XP installed on it, the machine is currently in Spain and I am trying to install an ADSL USB modem. However when you are trying to install is always a problem in the installation program indicate that it not there no free PCI card slots available for the ADSL USB modem to use. I've tried a few things to get this software to install, but no joy, I have removed devices using Device Manager pci slots to see if this new modem would use their slots recently released, but this does not work, so I was wondering if anyone has had a similar problem which can give the solution to this problem. installation is complete however when you try to use the modem to dial the adsl line it give an error of no available tone, it gives exactly the same respons if I unplug the modem, leaving me to believe that the system is not covering in any way with the modem during the dial-up procedure. As an aside to this XP did pick up and recognize this device and try to install it as a device ADSL-RE, but this is not the correctly the modem either... I tried using the supplied software and automatic installation XP. really need help on this one.

    Hello

    I heard nothing about such a problem, but it seems that your modem software does not work properly or your modem drivers are damaged!

    Downloaded a software update and modem drivers USB from the maufacturer homepage?

    You should also check if your USB 2.0 is working properly and test it with an evaluation of the performance program!

    Pete Bye

  • A2109 micro-sd slot?

    This new model is listed at some online sellers like having a slot for micro-sd card and others as not having no not one. Who is this? Are there two versions of the same model, one with and one without? Thank you...

    Yes! There is a microphone slot, but it seems that they left out of the documentation. Must lift and remove the rear piece which covers the camera and speakers and you will see.
    Update:
    Ahh, I see not why this feature may be unannounced. It seems android has not really supported this in a simple way. For example, there seems to be no way to point apps like dropbox, sugar sync etc. to use this new space. The microsd card is mounted as/mnt/sdcard2. I guess it would be possible to make links between/mnt/sdcard and/mnt/sbcard2, but who wants to do everything :-(
    Update2, ridiculous amount of updates, I quite agree and pls bring on the firing squad. So, I want to point out that you can use the slot micosd to carry about 5 movies or a stub to load music etc... So not all bad. I'll have to see if a music player can find the files on sdcard2, hmmmm update3 to come.

  • HP pavilion dv 6700 express card slot

    Hello everyone

    I have the laptop next

    HP PAVILION dv6700

    S/N {deleted private information}

    P/N FG787EA #B1A

    Serial number dv6860ev

    ID SERVICE 20090

    My laptop has an ExpressCard Slot

    My question is if I can use this slot to use an ExpressCard USB3.0

    Thank you

    Yes you can. The speed you get is maybe not quite as long as would be obtained with a more modern system due to restrictions on bandwidth on your chipset. Expresscard housing is basically a 1 x pci-e slot. However, it should be faster than via the usb 2.0 interface. The 54mm card is a better choice that the variety of 34mm essentially uses a usb interface which will be even slower.

  • WWAN or mSata use, L512, SSD

    Hello

    Maybe someone could help me with my question.

    I own a Lenovo L512 4444-4PG. After reading the manual, I found the description of

    the view of the underside of my L512. There is a slot for card Wireless WAN number 6

    mentioned.

    Well, it looks like an mSata Slot.
    Do you think I can use a RunCore Pro V 6Gbps SSD or 3Gbps mSATA
    by using this slot machine? Or any other SSD by using this slot machine?

    Manual name: ThinkPad SL410, L410, L412, SL510, L510 and L512 Hardware Maintenance Manual
    60y3635_01.PDF

    Manual page: 154

    Thanks a lot for your help!

    L520 was the first to have mSATA capable slot, the slot L512 mPCIe is for the WWAN card.

  • OME 2.2: Inventory unclassified WSMAN

    Our displays is an upgrade to 2.1 OME (where we also had the problem)
    We are using WSMAN to inventory our DRACs and they are marked as not classified

    Note: on a test OME 2.0 Server, using the same configuration everything works as expected.

    The troubleshooting tool works normal when selecting these options and WSMAN
    Jump CA control
    Skip CN Check

    Using winrm, there is no output and no error message?

    WinRM e cimv2/root/dcim/DCIM_SystemView - u: root - p: *-r: https: / / * / wsman:443 - auth: base - encoding: utf - 8 - SkipCACheck - SkipCNCheck - skiprevocationcheck

    Which version is the lifecycle controller and BIOS on server 11G (iDRAC6)?
    What is the server model?

    Another thing you can try is to restart once iDRAC.

  • Specifying the inventory location when installing wls1036_generic.jar. What should get connected?

    Hi all

    I have installed wls1036_generic.jar on a new machine and try to install it by using a predefined inventory place. However, nothing gets saved to this location after the installation successfully. Is supposed to inventory_loc get updated during a WLS install?

    I use the following command.

    java-jar /u01/working/wls1036_generic.jar-mode = silent-silent_xml=/u01/working/silent_wls_rpm.xml -invPtrLoc=/U01/app/oraInst.loc


    and oraInst.loc contains:

    inventory_loc = / u01/app/oraInventory

    inst_group = mwadm


    Nothing is generated under/u01/app/oraInventory.

    I think you're right. I looked in the documentation for weblogic 11g - 12.1.1 - 12.1.2 - 12.1.3 and found no mention for Oracle inventory. I found it only mentioned in 12.2.1 documentation https://docs.oracle.com/middleware/1221/core/WLSIG/GUID-E4241C14-42D3-4053-8F83-C748E059607A.htm#WLSIG125

Maybe you are looking for