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)
Offline
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 )
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:
// Mouse dragging/moving event ... if (currentBlock != null) { currentBlock.setLocation(evt.getX(), evt.getY()); } ...
... // Mouse pressed for (Block b : blocks) { if (b.contains(evt.getLocation())) { currentBlock = b; break; } } ...
... // Mouse released currentBlock = null; ...
ZeroLuck
Last edited by ZeroLuck (2012-03-21 10:05:48)
Offline
Offline
ZeroLuck wrote:
Very good, Zero.
Offline
I tried out some of your other games.
One word.
AMAZING.
Offline
Need mr to do something
Offline
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)
Offline
yes i can
Offline
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.
![]()
it's just the frame logo.
ok it just that theres no logo anywhere for me
where is the dragging code?
Offline