This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2013-01-16 20:07:12

kluspossible
Scratcher
Registered: 2009-04-15
Posts: 34

Help with Draggable Sprites Script

So here's my idea:



I am creating an escape game in which you pick up items and put them in your inventory. Once they are in your inventory you can click and drag them to other items to try and combine them, or to people and other things.

If the item is compatible it disappears with the other item and combines into a new sprite, or disappears to complete the action.

If it isn't compatible it automatically goes back to it's previous position in the inventory.



Note: The inventory isn't a list. It's a visual inventory within the game screen.



I'm really stuck on how exactly to script this out. ^^; Any help would be awesome.

Thanks!

Offline

 

#2 2013-01-16 20:24:03

Blazingwave
Scratcher
Registered: 2012-10-27
Posts: 500+

Re: Help with Draggable Sprites Script

Try this : http://i49.tinypic.com/2mophs1.gif
The first bit is how to make it dragable.
When the other sprite recieves "hide and make" it will hide and the other sprite will change costume to make it look as if both of them together are making a new sprite.
The list called compatibile will contain if those two are compatibile for more sprites make compatibile1, compatibile2 etc.


http://i42.tinypic.com/t8nrlh.gif  http://blocks.scratchr.org/API.php?user=Blazingwave&action=onlineStatus&online=http://i49.tinypic.com/25flloj.gif=http://i45.tinypic.com/o8i97l.gif
http://i41.tinypic.com/s1lyyo.jpg

Offline

 

#3 2013-01-16 20:46:05

kluspossible
Scratcher
Registered: 2009-04-15
Posts: 34

Re: Help with Draggable Sprites Script

Blazingwave wrote:

Thanks! I'll try it out.

Offline

 

#4 2013-01-16 22:29:28

Blazingwave
Scratcher
Registered: 2012-10-27
Posts: 500+

Re: Help with Draggable Sprites Script

No problem  wink  Did it work?


http://i42.tinypic.com/t8nrlh.gif  http://blocks.scratchr.org/API.php?user=Blazingwave&action=onlineStatus&online=http://i49.tinypic.com/25flloj.gif=http://i45.tinypic.com/o8i97l.gif
http://i41.tinypic.com/s1lyyo.jpg

Offline

 

#5 2013-01-17 20:29:15

CAA14
Scratcher
Registered: 2013-01-14
Posts: 1000+

Re: Help with Draggable Sprites Script

Hi,

Just wondering,

What is an "Escape" game?


regards,


CAA14

Offline

 

#6 2013-01-17 22:10:30

Blazingwave
Scratcher
Registered: 2012-10-27
Posts: 500+

Re: Help with Draggable Sprites Script

CAA14 wrote:

Hi,

Just wondering,

What is an "Escape" game?


regards,


CAA14

I think you should ask on a different thread, sorry. This thread is about helping him do the script. We dont really want this thread clogged up with other stuff.  wink


http://i42.tinypic.com/t8nrlh.gif  http://blocks.scratchr.org/API.php?user=Blazingwave&action=onlineStatus&online=http://i49.tinypic.com/25flloj.gif=http://i45.tinypic.com/o8i97l.gif
http://i41.tinypic.com/s1lyyo.jpg

Offline

 

#7 2013-01-18 17:32:18

kluspossible
Scratcher
Registered: 2009-04-15
Posts: 34

Re: Help with Draggable Sprites Script

Blazingwave wrote:

CAA14 wrote:

Hi,

Just wondering,

What is an "Escape" game?


regards,


CAA14

I think you should ask on a different thread, sorry. This thread is about helping him do the script. We dont really want this thread clogged up with other stuff.  wink

*cough* her *cough*

Offline

 

#8 2013-01-18 18:07:19

Blazingwave
Scratcher
Registered: 2012-10-27
Posts: 500+

Re: Help with Draggable Sprites Script

kluspossible wrote:

Blazingwave wrote:

CAA14 wrote:

Hi,

Just wondering,

What is an "Escape" game?


regards,


CAA14

I think you should ask on a different thread, sorry. This thread is about helping him do the script. We dont really want this thread clogged up with other stuff.  wink

*cough* her *cough*

I mean her. Btw did it work?


http://i42.tinypic.com/t8nrlh.gif  http://blocks.scratchr.org/API.php?user=Blazingwave&action=onlineStatus&online=http://i49.tinypic.com/25flloj.gif=http://i45.tinypic.com/o8i97l.gif
http://i41.tinypic.com/s1lyyo.jpg

Offline

 

#9 2013-03-27 19:51:07

kluspossible
Scratcher
Registered: 2009-04-15
Posts: 34

Re: Help with Draggable Sprites Script

Blazingwave wrote:

kluspossible wrote:

Blazingwave wrote:


I think you should ask on a different thread, sorry. This thread is about helping him do the script. We dont really want this thread clogged up with other stuff.  wink

*cough* her *cough*

I mean her. Btw did it work?

Sorry, for the late reply. ^^;

And yes. Thank you very much!

Offline

 

Board footer