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

#376 2009-10-21 00:04:59

ThePiGuy
Scratcher
Registered: 2009-08-27
Posts: 64

Re: Emerald

Oh, sorry. But I do have C#!
I've sort of started making my own version...
I really like this idea...


PI IS AWESOME!! Yes, pi is not equal to 3.14. It's 3.1415926535897932384626433832795028841971693993751058...

Offline

 

#377 2009-10-21 09:11:35

Magnie
Scratcher
Registered: 2007-12-12
Posts: 1000+

Re: Emerald

Then, why don't you go help with Filo? He is working in C#. He's going to make a Emerald Programming Environment.

Offline

 

#378 2009-10-21 11:06:44

Greatdane
Scratcher
Registered: 2007-06-05
Posts: 1000+

Re: Emerald

You know, I just got an idea.

You know how to define functions in python, right?

Code:

def my_function(): <--------------

What if we do the same thing in Emerald?

Code:

ask("Hi!",my_var)
print('Hello World')
var('new', 'myvar')
var('del', 'myvar')
var('mutate', 'myvar', '+1')
var('change', 'myvar', '104')

In var(), the first parameter is the actions, second the variable, and third the change.

How about that?  smile

Last edited by Greatdane (2009-10-21 11:08:53)


The future belongs to those who believe in the beauty of their dreams.
        ~ Eleanor Roosevelt

Offline

 

#379 2009-10-21 14:07:13

Magnie
Scratcher
Registered: 2007-12-12
Posts: 1000+

Re: Emerald

Hmm... That might work a bit, we'll need to get Floppy to check this.

Offline

 

#380 2009-10-21 15:11:24

gershmer
Scratcher
Registered: 2009-02-12
Posts: 1000+

Re: Emerald

ThePiGuy wrote:

Oh, sorry. But I do have C#!
I've sort of started making my own version...
I really like this idea...

I know! It's a good idea, right? I wish they just didn't have to kill so many emeralds to make it! (Stupid joke, modified family guy quote)

I would love to see your new version.

And, once again, you can still download Python from http://www.python.org/

However, helping Filo with Diamond in C# works, too.


Visit my site, Gershmer.net
Leave me a voicemail at my Google Voice number, [removed]

Offline

 

#381 2009-10-21 22:06:22

ThePiGuy
Scratcher
Registered: 2009-08-27
Posts: 64

Re: Emerald

It currently only has 3 commands.. but I'll add more.

Code:

Displays a message box that says "(your code here)":
MSG (your code here)
_______________________
Makes a number variable.
VINT (name)
_______________________
Makes a string variable.
VSTR (name)

and that's it. After a LONG time(1.5 hours) of debugging, it does that!

P.S. I'm only 9.

Last edited by ThePiGuy (2009-10-21 22:06:37)


PI IS AWESOME!! Yes, pi is not equal to 3.14. It's 3.1415926535897932384626433832795028841971693993751058...

Offline

 

#382 2009-10-21 22:36:52

Magnie
Scratcher
Registered: 2007-12-12
Posts: 1000+

Re: Emerald

9 for a C# programmer, nice, I'm 12, I have just barely gotten a C# Environment, so I could work on some stuff to.  smile

Offline

 

#383 2009-10-22 13:26:34

gershmer
Scratcher
Registered: 2009-02-12
Posts: 1000+

Re: Emerald

Magnie wrote:

I'm 12

I'm 12, too. Thanks to floppy_gunk, though, I can create basic Tkinter programs.


Visit my site, Gershmer.net
Leave me a voicemail at my Google Voice number, [removed]

Offline

 

#384 2009-10-22 14:14:00

Magnie
Scratcher
Registered: 2007-12-12
Posts: 1000+

Re: Emerald

I know, he's awesome!

Offline

 

#385 2009-10-22 19:37:19

Greatdane
Scratcher
Registered: 2007-06-05
Posts: 1000+

Re: Emerald

9? Wow. I'm either older or younger than Magnie and you. I was just wondering, how do you use Tkinter? I've never seen such a module before. I've been working with PythonCard and EasyGui. Any of you know those?


The future belongs to those who believe in the beauty of their dreams.
        ~ Eleanor Roosevelt

Offline

 

#386 2009-10-22 20:05:38

Magnie
Scratcher
Registered: 2007-12-12
Posts: 1000+

Offline

 

#387 2009-10-22 21:41:10

Greatdane
Scratcher
Registered: 2007-06-05
Posts: 1000+

Re: Emerald

Ah, well. I'll deal with tkinter until then.  lol


The future belongs to those who believe in the beauty of their dreams.
        ~ Eleanor Roosevelt

Offline

 

#388 2009-10-22 22:14:39

Magnie
Scratcher
Registered: 2007-12-12
Posts: 1000+

Re: Emerald

Lol, k.

Offline

 

#389 2009-10-24 12:04:56

markyparky56
Scratcher
Registered: 2008-03-20
Posts: 1000+

Re: Emerald

Greatdane wrote:

You know, I just got an idea.

You know how to define functions in python, right?

Code:

def my_function(): <--------------

What if we do the same thing in Emerald?

Code:

ask("Hi!",my_var)
print('Hello World')
var('new', 'myvar')
var('del', 'myvar')
var('mutate', 'myvar', '+1')
var('change', 'myvar', '104')

In var(), the first parameter is the actions, second the variable, and third the change.

How about that?  smile

I like that idea!!!

P.s. hi guys, im back.


http://j.mp/jgVnTq
Check out my game engine development site: NewDawn I'm a Level 171 Scratcher.I am http://bit.ly/nkvLNT

Offline

 

#390 2009-10-24 12:36:40

Magnie
Scratcher
Registered: 2007-12-12
Posts: 1000+

Re: Emerald

wb Marky!

Offline

 

#391 2009-10-24 15:53:21

gershmer
Scratcher
Registered: 2009-02-12
Posts: 1000+

Re: Emerald

how do I program in c# without visual studio?

can I just create a .m(?) file, then use a compiler?(?)

*waits for filo*

Last edited by gershmer (2009-10-24 16:38:19)


Visit my site, Gershmer.net
Leave me a voicemail at my Google Voice number, [removed]

Offline

 

#392 2009-10-24 16:22:00

Greatdane
Scratcher
Registered: 2007-06-05
Posts: 1000+

Re: Emerald

Visual Studio is an IDE, isn't it? I don't know how to run it. I barely know what it is.


The future belongs to those who believe in the beauty of their dreams.
        ~ Eleanor Roosevelt

Offline

 

#393 2009-10-24 18:18:49

Magnie
Scratcher
Registered: 2007-12-12
Posts: 1000+

Re: Emerald

Gersh, all you need is a compiler, I don't have Visual C#, I just use Mono.

Offline

 

#394 2009-10-25 10:19:56

markyparky56
Scratcher
Registered: 2008-03-20
Posts: 1000+

Re: Emerald

i have visual J# and VB, and i think somewhere, i have visual C++... well, if you want me to help, im free untill wedensday, october holidays.


http://j.mp/jgVnTq
Check out my game engine development site: NewDawn I'm a Level 171 Scratcher.I am http://bit.ly/nkvLNT

Offline

 

#395 2009-10-25 12:48:07

gershmer
Scratcher
Registered: 2009-02-12
Posts: 1000+

Re: Emerald

Can anyone give me a good c# compiler?


Visit my site, Gershmer.net
Leave me a voicemail at my Google Voice number, [removed]

Offline

 

#396 2009-10-25 15:17:49

ThePiGuy
Scratcher
Registered: 2009-08-27
Posts: 64

Re: Emerald

I read two 500-page-books on C#, but I STILL make TONS of errors.


PI IS AWESOME!! Yes, pi is not equal to 3.14. It's 3.1415926535897932384626433832795028841971693993751058...

Offline

 

#397 2009-10-25 17:03:21

markyparky56
Scratcher
Registered: 2008-03-20
Posts: 1000+

Re: Emerald

wow... but i geuss there are a few ways around that Pi, unless you've alreayd done it, Make a Libary, i suggest Note Pad, and have it contain all the code you need, then you just need to copy-paste it!


http://j.mp/jgVnTq
Check out my game engine development site: NewDawn I'm a Level 171 Scratcher.I am http://bit.ly/nkvLNT

Offline

 

#398 2009-10-25 22:35:17

ThePiGuy
Scratcher
Registered: 2009-08-27
Posts: 64

Re: Emerald

I have Visual Studio 2008, that works fine.
I usually type one to many words, leave one out, spell incorrectly, don't understand the error, or (Most common) FORGET THE SEMICOLON AT THE END OF THE LINE;


PI IS AWESOME!! Yes, pi is not equal to 3.14. It's 3.1415926535897932384626433832795028841971693993751058...

Offline

 

#399 2009-10-26 04:37:36

markyparky56
Scratcher
Registered: 2008-03-20
Posts: 1000+

Re: Emerald

lol  lol, well, anyway... what did i miss when i was on holiday?


http://j.mp/jgVnTq
Check out my game engine development site: NewDawn I'm a Level 171 Scratcher.I am http://bit.ly/nkvLNT

Offline

 

#400 2009-10-26 07:17:38

filo5
Scratcher
Registered: 2008-01-08
Posts: 1000+

Re: Emerald

gershmer wrote:

how do I program in c# without visual studio?

can I just create a .m(?) file, then use a compiler?(?)

*waits for filo*

Your wait is over, Gershmer.

Yes, you can program w/out visual studio, you just need a compiler for it (usually found on MS website; filename: csc.exe; requirements: .NET), but it's hellishly difficult to do WinForms in it (WinForms are just windows-based programs).
And, usual compiler call generated by VisualStudio is over 200 chars long.

And, building an application is not only one compiler call - it's basically about 4 different tools calls. So yes, you can program without any IDE, but it's really difficult and timewasting. If you don't want to/can't use VisualStudio, there are other IDEs

Try this one


Converting my Scratch projects to Python!

Offline

 

Board footer