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

#51 2012-03-20 15:48:49

muppetds
Scratcher
Registered: 2011-02-11
Posts: 1000+

Re: ScratchJava

how much longer till you finish?


SCRATCH'S PARTLY INSANE RESIDENT 
http://internetometer.com/imagesmall/31691.pnghttp://bluetetrarpg.x10.mx/usercard/?name=muppetds

Offline

 

#52 2012-03-20 15:54:33

poopo
Scratcher
Registered: 2009-09-20
Posts: 1000+

Re: ScratchJava

muppetds wrote:

how much longer till you finish?

I don't know. It may take me until tomorrow unless you really need it.


http://i45.tinypic.com/28rnqki.jpg

Offline

 

#53 2012-03-20 15:55:40

muppetds
Scratcher
Registered: 2011-02-11
Posts: 1000+

Re: ScratchJava

nope just wondering


SCRATCH'S PARTLY INSANE RESIDENT 
http://internetometer.com/imagesmall/31691.pnghttp://bluetetrarpg.x10.mx/usercard/?name=muppetds

Offline

 

#54 2012-03-20 16:23:16

muppetds
Scratcher
Registered: 2011-02-11
Posts: 1000+

Re: ScratchJava

also tell me where the  block dragging code is


SCRATCH'S PARTLY INSANE RESIDENT 
http://internetometer.com/imagesmall/31691.pnghttp://bluetetrarpg.x10.mx/usercard/?name=muppetds

Offline

 

#55 2012-03-20 16:29:03

muppetds
Scratcher
Registered: 2011-02-11
Posts: 1000+

Re: ScratchJava

also what does the  image do - the reference one?


SCRATCH'S PARTLY INSANE RESIDENT 
http://internetometer.com/imagesmall/31691.pnghttp://bluetetrarpg.x10.mx/usercard/?name=muppetds

Offline

 

#56 2012-03-21 09:12:08

wmays
Scratcher
Registered: 2008-05-10
Posts: 500+

Re: ScratchJava

I'd like to join the dev team, though I can only contribute here and there.

Also, maybe to fix the dragging problem, you could give each block an id? It's only a matter of adding one variable to the source and the constructor. Then you could know which block was being dragged.

Last edited by wmays (2012-03-21 09:40:40)


http://i42.tinypic.com/2z5vcz9.gif
http://phpscripthost.comoj.com/imagescripts/ipimg.php

Offline

 

#57 2012-03-21 10:01:14

ZeroLuck
Scratcher
Registered: 2010-02-23
Posts: 500+

Re: ScratchJava

muppets wrote:

did you create your own imports?

Lol. Do you think the JDK contains classes like these?
I had to programm them...

poopo wrote:

@Zeroluck Cool! Ours will be better thoughNo it probobly won't be. :b.
  big_smile

You guys are very big beginners.
I don't think you are able to do something like that.
It would be better when you first try to lean the basics of Java...
But we will see.

poopo wrote:

@ZeroLuck Do you guys have snapping yet?

www.zero-bgn.de/js


I saw you have proplems with dragging... (Haha  wink  )
What about making a global "private Block currentDrag;" variable?
You could set it to the block which should be dragged.
When the MouseListener gets a new message, you do something like that:

Code:

// Mouse dragging/moving event
...
if (currentBlock != null) {
    currentBlock.setLocation(evt.getX(), evt.getY());
}
...

Code:

...
// Mouse pressed
for (Block b : blocks) {
    if (b.contains(evt.getLocation())) {
        currentBlock = b;
        break;
    }
}
...

Code:

...
// Mouse released
currentBlock = null;

...

ZeroLuck

Last edited by ZeroLuck (2012-03-21 10:05:48)


http://3.bp.blogspot.com/-oL2Atzp0Byw/T465vIQ36dI/AAAAAAAAADo/1vqL4PvhkM0/s1600/scratchdachwiki.png

Offline

 

#58 2012-03-21 10:09:05

slinger
Scratcher
Registered: 2011-06-21
Posts: 1000+

Re: ScratchJava

ZeroLuck wrote:

www.zero-bgn.de/js

Wooooaaaah this is awesome! ^^


http://s0.bcbits.com/img/buttons/bandcamp_130x27_blue.png

Offline

 

#59 2012-03-21 10:39:06

ProgrammingFreak
Scratcher
Registered: 2010-09-04
Posts: 1000+

Re: ScratchJava

ZeroLuck wrote:

www.zero-bgn.de/js

Very good, Zero.  big_smile

Offline

 

#60 2012-03-21 10:57:33

slinger
Scratcher
Registered: 2011-06-21
Posts: 1000+

Re: ScratchJava

slinger wrote:

ZeroLuck wrote:

www.zero-bgn.de/js

Wooooaaaah this is awesome! ^^

I tried out some of your other games.
One word.
AMAZING.


http://s0.bcbits.com/img/buttons/bandcamp_130x27_blue.png

Offline

 

#61 2012-03-21 11:19:53

slayerrobe7
Scratcher
Registered: 2011-06-24
Posts: 500+

Re: ScratchJava

Need mr to do something


!!!When it comes to Scratch2.0 I am totally like freaking out!!!

Offline

 

#62 2012-03-21 11:24:58

poopo
Scratcher
Registered: 2009-09-20
Posts: 1000+

Re: ScratchJava

Can't upload to the sourceforge.
@ZeroLuck thanks for all the advice! What would you consider the basics?
Edit:here's the dropbox link

Last edited by poopo (2012-03-21 11:34:13)


http://i45.tinypic.com/28rnqki.jpg

Offline

 

#63 2012-03-21 11:36:55

muppetds
Scratcher
Registered: 2011-02-11
Posts: 1000+

Re: ScratchJava

@zeroluck cool but isn't it Javascript?

Poopo hmm

red-dino is a dev so you should be able to


SCRATCH'S PARTLY INSANE RESIDENT 
http://internetometer.com/imagesmall/31691.pnghttp://bluetetrarpg.x10.mx/usercard/?name=muppetds

Offline

 

#64 2012-03-21 11:41:43

slayerrobe7
Scratcher
Registered: 2011-06-24
Posts: 500+

Re: ScratchJava

yes i can


!!!When it comes to Scratch2.0 I am totally like freaking out!!!

Offline

 

#65 2012-03-21 11:43:56

poopo
Scratcher
Registered: 2009-09-20
Posts: 1000+

Re: ScratchJava

I'm still unable too.


http://i45.tinypic.com/28rnqki.jpg

Offline

 

#66 2012-03-21 11:45:36

ZeroLuck
Scratcher
Registered: 2010-02-23
Posts: 500+

Re: ScratchJava

muppetds wrote:

@zeroluck cool but isn't it Javascript?

No, it is a JavaApplet.
Why do you think it is JavaScript?


http://3.bp.blogspot.com/-oL2Atzp0Byw/T465vIQ36dI/AAAAAAAAADo/1vqL4PvhkM0/s1600/scratchdachwiki.png

Offline

 

#67 2012-03-21 11:46:44

muppetds
Scratcher
Registered: 2011-02-11
Posts: 1000+

Re: ScratchJava

Also what does the reference image do?


SCRATCH'S PARTLY INSANE RESIDENT 
http://internetometer.com/imagesmall/31691.pnghttp://bluetetrarpg.x10.mx/usercard/?name=muppetds

Offline

 

#68 2012-03-21 11:50:12

muppetds
Scratcher
Registered: 2011-02-11
Posts: 1000+

Re: ScratchJava

Ok i see what you mean by the dragging thing


SCRATCH'S PARTLY INSANE RESIDENT 
http://internetometer.com/imagesmall/31691.pnghttp://bluetetrarpg.x10.mx/usercard/?name=muppetds

Offline

 

#69 2012-03-21 11:51:21

muppetds
Scratcher
Registered: 2011-02-11
Posts: 1000+

Re: ScratchJava

ZeroLuck wrote:

muppetds wrote:

@zeroluck cool but isn't it Javascript?

No, it is a JavaApplet.
Why do you think it is JavaScript?

as it says js in the link


SCRATCH'S PARTLY INSANE RESIDENT 
http://internetometer.com/imagesmall/31691.pnghttp://bluetetrarpg.x10.mx/usercard/?name=muppetds

Offline

 

#70 2012-03-21 11:55:33

poopo
Scratcher
Registered: 2009-09-20
Posts: 1000+

Re: ScratchJava

muppetds wrote:

ZeroLuck wrote:

muppetds wrote:

@zeroluck cool but isn't it Javascript?

No, it is a JavaApplet.
Why do you think it is JavaScript?

as it says js in the link

JScratch.  wink

it's just the frame logo.


http://i45.tinypic.com/28rnqki.jpg

Offline

 

#71 2012-03-21 11:57:17

muppetds
Scratcher
Registered: 2011-02-11
Posts: 1000+

Re: ScratchJava

poopo wrote:

muppetds wrote:

ZeroLuck wrote:


No, it is a JavaApplet.
Why do you think it is JavaScript?

as it says js in the link

JScratch.  wink

it's just the frame logo.

ok it just that theres no logo anywhere for me

where is the dragging code?


SCRATCH'S PARTLY INSANE RESIDENT 
http://internetometer.com/imagesmall/31691.pnghttp://bluetetrarpg.x10.mx/usercard/?name=muppetds

Offline

 

#72 2012-03-21 12:04:50

poopo
Scratcher
Registered: 2009-09-20
Posts: 1000+

Re: ScratchJava

muppetds wrote:

poopo wrote:

muppetds wrote:


as it says js in the link

JScratch.  wink

it's just the frame logo.

ok it just that theres no logo anywhere for me

where is the dragging code?

In the blocks.


http://i45.tinypic.com/28rnqki.jpg

Offline

 

#73 2012-03-21 12:10:06

muppetds
Scratcher
Registered: 2011-02-11
Posts: 1000+

Re: ScratchJava

okeydokey


SCRATCH'S PARTLY INSANE RESIDENT 
http://internetometer.com/imagesmall/31691.pnghttp://bluetetrarpg.x10.mx/usercard/?name=muppetds

Offline

 

#74 2012-03-21 13:46:05

muppetds
Scratcher
Registered: 2011-02-11
Posts: 1000+

Re: ScratchJava

doing some experiments right now


SCRATCH'S PARTLY INSANE RESIDENT 
http://internetometer.com/imagesmall/31691.pnghttp://bluetetrarpg.x10.mx/usercard/?name=muppetds

Offline

 

#75 2012-03-21 14:57:46

muppetds
Scratcher
Registered: 2011-02-11
Posts: 1000+

Re: ScratchJava

poopo wrote:

I'm still unable too.

whats your source forge username


SCRATCH'S PARTLY INSANE RESIDENT 
http://internetometer.com/imagesmall/31691.pnghttp://bluetetrarpg.x10.mx/usercard/?name=muppetds

Offline

 

Board footer