I am already good at canvas and know what I'm doing. And have you got a website yet? If so what is the URL, if not can I get a copy of the current work. Also if you don't 'xtreemhost' is free and no-ads.
Last edited by johnnydean1 (2011-06-04 16:43:17)
Offline
comp500 wrote:
rdococ wrote:
Key codes are important for DSi Scratch, so here's a table:
Code Button
13 A
37 Left
38 Up
39 Right
40 Down
EDIT: Can I help? I know Javascript, and even if I don't know a few commands, I will search for the commands on w3schools.Yup in fact i'm testing it now...
You can help!
Oh, forgot that . . .
That would help me too! I'm basing my development on the Pokemon page.
EDIT: Scrap the Pokemon page, I'm going to get help from W3Schools and I'm basing it from that.
Last edited by rdococ (2011-06-04 16:53:34)
Offline
What my pokemon page? BTW I am rebuilding it for another feature I want added, I will upload it soon...
Offline
Here. It has no images in it so there is no loading.
Offline
rdococ wrote:
I just found out it's just the loading screen. Can I customize it?
Yup. In fact, you work on scratch everywhere by posting snippets of code!
Offline
I've done the properties part, and I've decided to use a canvas as the stage.
Next, I'm going to add the extra code to the button to make it update the stage when clicked.
Offline
Oh, and if that didn't make sense:
rdococ wrote:
EDIT: Scrap the Pokemon page, I'm going to get help from W3Schools and I'm basing it from that.
Offline
rdococ wrote:
In my current revision, I edited "Loading..." into "Loading Scratch Everywhere..." to make sense it's loading the correct thing, and for extra "decoration".
Is this a good change?
EDIT: I said revision becau- Wikipedia.
I will add it as soon as I get on teh comp.
Offline
With firebug, it says I haven't defined the "update" function, but I have.
Offline
johnnydean1 wrote:
I am already good at canvas and know what I'm doing. And have you got a website yet? If so what is the URL, if not can I get a copy of the current work. Also if you don't 'xtreemhost' is free and no-ads.
To get the current url (not on a proper host) click on Development in the first post.
Offline
Has anyone seen the new version of the Pokemon page? (Link a few posts up)
Offline
Did you hear me above?
EDIT:
The code is:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <title>Scratch Everywhere</title> </head> <body> <br> <form name="data"> <canvas id="stage" width="200" height="100" style="border: 1px solid rgb(195, 195, 195);">Oops! Your browser does not support canvas. Please use a different browser. We recommend the standard DSi web browser. </canvas><br> <script type="text/javascript"> function update() { var c=document.getElementById("stage"); var cxt=c.getContext("2d"); cxt.fillStyle="#FFFFFF"; cxt.fillRect(0,0,200,100); cxt.fillStyle="#FF0000"; cxt.beginPath(); cxt.arc(document.data.sprite1x.value,document.data.sprite1y,value,15,0,Math.PI*2,true); cxt.closePath(); cxt.fill(); if (sprite2=="true") { var c=document.getElementById("stage"); var cxt=c.getContext("2d"); cxt.fillStyle="#FFFF00"; cxt.beginPath(); cxt.arc(document.data.sprite2x.value,document.data.sprite2y.value,15,0,Math.PI*2,true); cxt.closePath(); cxt.fill(); } } </script> Use sprite2? <input name="sprite2" value="false" type="text"><br> Sprite1 X:<input name="sprite1x" value="15" type="text"><br> Sprite1 Y:<input name="sprite1y" value="15" type="text"><br> Sprite2 X:<input name="sprite2x" value="15" type="text"><br> Sprite2 Y:<input name="sprite2y" value="15" type="text"><br> <input name="update" onclick="update()" value="Update Stage..." type="button"> </form> </body> </html>
What's the problem with my code?
Last edited by rdococ (2011-06-05 04:41:10)
Offline
Dunno, but I would have used an array to store sprites...
Offline
I found out that it was a bug with Firefox and Firebug -- I renamed the function, and it worked.
Offline
Oh yeah, something funny with my code: It uses Pi.
This is to render the sprites as circles (which's circfumence is Pi x2).
Also, I saved the webpage as 'Scratch Everywhere' for some reason.
If you want, you can have my code. It is based off Javascript and uses the canvas tag:
(Scratch Everywhere, code snippet v. 1.0)
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <title>Scratch Everywhere</title> </head> <body> <br> <form name="data"> <canvas id="stage" width="200" height="100" style="border: 1px solid rgb(195, 195, 195);">Oops! Your browser does not support canvas. Please use a different browser. We recommend the standard DSi web browser. </canvas><br> <script type="text/javascript"> function updateStageInToFin() { var c=document.getElementById("stage"); var cxt=c.getContext("2d"); cxt.fillStyle="#FFFFFF"; cxt.fillRect(0,0,200,100); cxt.fillStyle="#FF0000"; cxt.beginPath(); cxt.arc(document.data.sprite1x.value,document.data.sprite1y.value,15,0,Math.PI*2,true); cxt.closePath(); cxt.fill(); if (document.data.sprite2.value=="true") { var c=document.getElementById("stage"); var cxt=c.getContext("2d"); cxt.fillStyle="#FFFF00"; cxt.beginPath(); cxt.arc(document.data.sprite2x.value,document.data.sprite2y.value,15,0,Math.PI*2,true); cxt.closePath(); cxt.fill(); } } </script> Use sprite2? <input name="sprite2" value="false" type="text"><br> Sprite1 X:<input name="sprite1x" value="15" type="text"><br> Sprite1 Y:<input name="sprite1y" value="15" type="text"><br> Sprite2 X:<input name="sprite2x" value="15" type="text"><br> Sprite2 Y:<input name="sprite2y" value="15" type="text"><br> <input name="update" onclick="updateStageInToFin()" value="Update Stage..." type="button"> </form> </body> </html>
Do you like it?
Offline
I would still use arrays for sprites...
Offline
I've never learned about arrays. What are they?
Offline
TornFusion wrote:
Hmm... I just thought, this project would be shut down by nintendo (they sneak stuff like blockers in their updates sometimes) and the creator would be took into court, assuming nobody snitches or speads this. We need to keep this low profile.
I TOTALLY SUPPORT THIS! I KNOW UR 10 BUT U ROCK! It would be a lot easier on the NDS/DSI/3DS platforms than the wii. The 3DS will not be updated for a long time as they're now updating the wii. Probably the exact sequence the NDS evolved.
I LIVE IN UK!
I live in Alienesia-land, if you're wondering.
Offline
TheSuccessor wrote:
I'm assuming we're doing this in JS. Just one question though: can we use HTML5 canvas? I'll start programming once I've got an answer.
I'm using the HTML5 canvas too, so yes, probably.
Offline
Bump. Post.
Offline
I could be a tester for the android... not quite sure where I would test it or when. Android already has internet.
Offline
I have an android emulator too, but without internet.
Offline
rdococ wrote:
Oh yeah, something funny with my code: It uses Pi.
This is to render the sprites as circles (which's circfumence is Pi x2).
Also, I saved the webpage as 'Scratch Everywhere' for some reason.
If you want, you can have my code. It is based off Javascript and uses the canvas tag:
(Scratch Everywhere, code snippet v. 1.0)Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <title>Scratch Everywhere</title> </head> <body> <br> <form name="data"> <canvas id="stage" width="200" height="100" style="border: 1px solid rgb(195, 195, 195);">Oops! Your browser does not support canvas. Please use a different browser. We recommend the standard DSi web browser. </canvas><br> <script type="text/javascript"> function updateStageInToFin() { var c=document.getElementById("stage"); var cxt=c.getContext("2d"); cxt.fillStyle="#FFFFFF"; cxt.fillRect(0,0,200,100); cxt.fillStyle="#FF0000"; cxt.beginPath(); cxt.arc(document.data.sprite1x.value,document.data.sprite1y.value,15,0,Math.PI*2,true); cxt.closePath(); cxt.fill(); if (document.data.sprite2.value=="true") { var c=document.getElementById("stage"); var cxt=c.getContext("2d"); cxt.fillStyle="#FFFF00"; cxt.beginPath(); cxt.arc(document.data.sprite2x.value,document.data.sprite2y.value,15,0,Math.PI*2,true); cxt.closePath(); cxt.fill(); } } </script> Use sprite2? <input name="sprite2" value="false" type="text"><br> Sprite1 X:<input name="sprite1x" value="15" type="text"><br> Sprite1 Y:<input name="sprite1y" value="15" type="text"><br> Sprite2 X:<input name="sprite2x" value="15" type="text"><br> Sprite2 Y:<input name="sprite2y" value="15" type="text"><br> <input name="update" onclick="updateStageInToFin()" value="Update Stage..." type="button"> </form> </body> </html>Do you like it?
Cool!. I also think you need arrays...
Offline