Thanks for the code LittleStain but what im wondering is how do i know which product has been fetched
for example
ON sprite(btn1) touched: FETCH PRODUCT 1
ON sprite(btn2) touched: FETCH PRODUCT 2
ON product fetch complete
--IS IN COCOONJS
-----IS STORE AVAILABLE : Purchase PRODUCT 1
How do i purchase the product based on the fetched product of the button? Since the "on product fetch complete" cant go under BTN touch
In this example:
How do i know if i've fetched the product from BTN 1 or BTN 2? (without declaring variables for each button and setting them to true and then doing an IF true then kind of thing, because it would take a lot of space and time for all of the products i've got)