Search found 24 matches

by SvenJ
Jul 14th, '17, 12:39
Forum: Working with GP
Topic: Assigning code to the stage?
Replies: 3
Views: 11346

Re: Assigning code to the stage?

This idea has been discussed amongst the GP team. It has the advantages you both mention, but it also adds complexity. The Stage needs a different palette than other objects (e.g. no motion blocks), and it always has exactly one instance. I'd like to stick with the current design for now but maybe ...
by SvenJ
Jul 14th, '17, 12:26
Forum: Working with GP
Topic: Possible to reference a specific object?
Replies: 2
Views: 10858

Re: Possible to reference a specific object?

I'm not quite sure what you mean by "reference". You can make select a given instance as the target of the scripter by clicking it's thumbnail under the stage. Doing that will allow you to see the values of it's instance variables in the "Variables" category and control it directly with blocks in t...
by SvenJ
Jul 14th, '17, 12:19
Forum: Working with GP
Topic: System palette vs. class browser?
Replies: 2
Views: 10423

Re: System palette vs. class browser?

Correct. The System Palette is a way to get blocks for operations that are implemented in the system but are not in the normal palette. The "class browser" (a slight misnomer since it includes global functions as well as classes) allows you to view (and possibly change) any code in the system. Both...
by SvenJ
Jul 14th, '17, 12:15
Forum: Working with GP
Topic: Automatic casting of variables?
Replies: 2
Views: 9193

Re: Automatic casting of variables?

I see :)

Thank you very much for clearing this up for me!
by SvenJ
Jul 14th, '17, 10:39
Forum: Working with GP
Topic: Automatic casting of variables?
Replies: 2
Views: 9193

Automatic casting of variables?

Hey :) Snap automatically casts variables (or rather, resets them to a default value of the target data type): if you set a variable x to "hello", and then increase the value of x by 5, the result comes out as 5. In GP, currently, this results in a syntax error thrown by the debugger (see attachment...
by SvenJ
Jul 14th, '17, 10:31
Forum: Working with GP
Topic: Possible to reference a specific object?
Replies: 2
Views: 10858

Possible to reference a specific object?

Hey everyone, more questions here :) I asked this in another thread, but probably better to talk about it in a separate thread: Is it still possible to reference a specific object on the stage? It used to be possible via the extended (shift+right-click) menu, but I don't see the option anymore. Was ...
by SvenJ
Jul 14th, '17, 10:28
Forum: Working with GP
Topic: System palette vs. class browser?
Replies: 2
Views: 10423

System palette vs. class browser?

Hey, got another question here :) Any input on this would be greatly appreciated! What is the difference between the system palette and the class browser (both are accessible by right-clicking the stage in developer mode)? It seems that the system palette does not show how blocks work, only serves t...
by SvenJ
Jul 13th, '17, 12:18
Forum: Working with GP
Topic: Assigning code to the stage?
Replies: 3
Views: 11346

Assigning code to the stage?

Hey, I was just wondering if there are any plans to enable the user to assign code to the stage of a project (as is possible in Snap)? This way, the stage could act as a "main"-class. From the example projects, I've noticed that a number of them use some sort of class that controls or manages the re...
by SvenJ
Jul 13th, '17, 11:41
Forum: Getting started
Topic: Top 10 most important things to know about GP before starting out
Replies: 14
Views: 2378806

Re: Top 10 most important things to know about GP before starting out

I've been thinking about the weak/dynamic typing section If GP same as Scratch/Snap - just miss it out. Everyone knows Scratch is completely type agnostic so no need to mention that GP is as well? We can get it down to 9 things then :) Yeah I've been considering it, but it is a major difference com...
by SvenJ
Jul 13th, '17, 07:27
Forum: Getting started
Topic: Top 10 most important things to know about GP before starting out
Replies: 14
Views: 2378806

Re: Top 10 most important things to know about GP before starting out

Without getting into too much detail, variables in Scratch/Snap and GP are weakly (and arguably dynamically) typed. Is that 100% true in GP? - the dynamically typed bit that is I thought I had to explicitly cast at one stage, to avoid error, when I was playing around - but now can't remember what I...