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

#51 2012-09-26 20:53:02

ErnieParke
Scratcher
Registered: 2010-12-03
Posts: 1000+

Re: Scripts Workshop: Give and get help with scripts

strawpile wrote:

Great,  thanks for the solutions.  BTW, where can I find a list of commands used in the scratchblocks code?

I don't know, but you can always look at other scratcher's block code here. That's what I did to learn how to write the code for scratchblocks in the forums.


http://i46.tinypic.com/35ismmc.png

Offline

 

#52 2012-09-27 02:48:01

JH1010
Scratcher
Registered: 2012-05-31
Posts: 1000+

Re: Scripts Workshop: Give and get help with scripts

@ strawpile and ErnieParke: Would you like to join?

Offline

 

#53 2012-09-27 03:08:30

Martiscratch
Scratcher
Registered: 2012-05-04
Posts: 100+

Re: Scripts Workshop: Give and get help with scripts

Can I join?


http://signaturecraft.us/signatures/eJw1yDEOgCAMBdC9p_gnICphdnA18QwoNZIAJRTD9Z184-uP74gKjxIvxi3tzaii3ZA-PjPijdgxvBpjcCYeeOtKW2Ou3OhIAbuUIOUvpdnNtDhH1tL0AQVCHgk~.png

Offline

 

#54 2012-09-27 06:02:53

ErnieParke
Scratcher
Registered: 2010-12-03
Posts: 1000+

Re: Scripts Workshop: Give and get help with scripts

JH1010 wrote:

@ strawpile and ErnieParke: Would you like to join?

Okay.


http://i46.tinypic.com/35ismmc.png

Offline

 

#55 2012-09-27 06:17:52

Jodymoses
Scratcher
Registered: 2012-05-03
Posts: 100+

Re: Scripts Workshop: Give and get help with scripts

Cant we have our own pic to show that we are the guys who are part of this group
and under all of our comments it shows that pic. IF Possible how?


http://i46.tinypic.com/2hxwx9s.png
I Have Huge Ideas, But Only If You Listen And Talk To Me...

Offline

 

#56 2012-09-27 06:41:54

ErnieParke
Scratcher
Registered: 2010-12-03
Posts: 1000+

Re: Scripts Workshop: Give and get help with scripts

Jodymoses wrote:

Cant we have our own pic to show that we are the guys who are part of this group
and under all of our comments it shows that pic. IF Possible how?

It is possible. First of all, get the code for your picture. Then go to Profile and then Personality. From there, paste in this code into the box that should appear:

Code:

[img]image's code here[*img]

Note:
Replace the "*" with a "/".

Hit "except" and you're done!

Last edited by ErnieParke (2012-09-27 06:44:34)


http://i46.tinypic.com/35ismmc.png

Offline

 

#57 2012-09-28 01:23:33

JH1010
Scratcher
Registered: 2012-05-31
Posts: 1000+

Re: Scripts Workshop: Give and get help with scripts

Welcome to the team Martiscratch and ErnieParke!

Use this image in your sig!
http://i50.tinypic.com/e6unpg.jpg

Offline

 

#58 2012-09-28 03:27:31

Martiscratch
Scratcher
Registered: 2012-05-04
Posts: 100+

Re: Scripts Workshop: Give and get help with scripts

did the [img] work?


http://signaturecraft.us/signatures/eJw1yDEOgCAMBdC9p_gnICphdnA18QwoNZIAJRTD9Z184-uP74gKjxIvxi3tzaii3ZA-PjPijdgxvBpjcCYeeOtKW2Ou3OhIAbuUIOUvpdnNtDhH1tL0AQVCHgk~.png

Offline

 

#59 2012-09-28 03:29:21

Martiscratch
Scratcher
Registered: 2012-05-04
Posts: 100+

Re: Scripts Workshop: Give and get help with scripts

I could add A link to here as well..


http://signaturecraft.us/signatures/eJw1yDEOgCAMBdC9p_gnICphdnA18QwoNZIAJRTD9Z184-uP74gKjxIvxi3tzaii3ZA-PjPijdgxvBpjcCYeeOtKW2Ou3OhIAbuUIOUvpdnNtDhH1tL0AQVCHgk~.png

Offline

 

#60 2012-09-28 07:02:05

Jodymoses
Scratcher
Registered: 2012-05-03
Posts: 100+

Re: Scripts Workshop: Give and get help with scripts

What is the pictures url and how can we use it?


http://i46.tinypic.com/2hxwx9s.png
I Have Huge Ideas, But Only If You Listen And Talk To Me...

Offline

 

#61 2012-09-28 07:04:50

Gravitation
New Scratcher
Registered: 2012-09-26
Posts: 500+

Re: Scripts Workshop: Give and get help with scripts

Jodymoses wrote:

What is the pictures url and how can we use it?

The image url is http://i50.tinypic.com/e6unpg.jpg and the code is [img]http://i50.tinypic.com/e6unpg.jpg[/img]

(Just don't copy it in the post a reply thingy)

Offline

 

#62 2012-09-28 11:01:10

Martiscratch
Scratcher
Registered: 2012-05-04
Posts: 100+

Re: Scripts Workshop: Give and get help with scripts

My [img] is a [url]to here as well! (click it!)


http://signaturecraft.us/signatures/eJw1yDEOgCAMBdC9p_gnICphdnA18QwoNZIAJRTD9Z184-uP74gKjxIvxi3tzaii3ZA-PjPijdgxvBpjcCYeeOtKW2Ou3OhIAbuUIOUvpdnNtDhH1tL0AQVCHgk~.png

Offline

 

#63 2012-09-28 11:24:19

ErnieParke
Scratcher
Registered: 2010-12-03
Posts: 1000+

Re: Scripts Workshop: Give and get help with scripts

JH1010 wrote:

Welcome to the team Martiscratch and ErnieParke!

Use this image in your sig!
http://i50.tinypic.com/e6unpg.jpg

I prefer using my own signature because you don't need a specific signature to help someone, though I'll find some other way to incorporate your workshop into my signature.


http://i46.tinypic.com/35ismmc.png

Offline

 

#64 2012-09-28 18:16:06

ErnieParke
Scratcher
Registered: 2010-12-03
Posts: 1000+

Re: Scripts Workshop: Give and get help with scripts

ErnieParke wrote:

JH1010 wrote:

Welcome to the team Martiscratch and ErnieParke!

Use this image in your sig!
http://i50.tinypic.com/e6unpg.jpg

I prefer using my own signature because you don't need a specific signature to help someone, though I'll find some other way to incorporate your workshop into my signature.

Actually, I've changed my mind. I'll just keep my current signature.


http://i46.tinypic.com/35ismmc.png

Offline

 

#65 2012-09-30 19:02:28

tlangster
Scratcher
Registered: 2011-09-18
Posts: 100+

Re: Scripts Workshop: Give and get help with scripts

Can someone tell me how to code a slingshot so that I can make an Angry Birds game? (simpler, the better)


2.0 coming soon...

Offline

 

#66 2012-10-01 04:45:31

Jodymoses
Scratcher
Registered: 2012-05-03
Posts: 100+

Re: Scripts Workshop: Give and get help with scripts

My easiest solution is
to make a
slingshot sprite
small dot sprite
projectile sprite

...let the slingshot x and y pos. be in the bottom left corner but not touching the edge...

Eg.

when gf clicked
set x to (-200)//this can be edited
set y to (-150)
stop script
For the dot add the following script

when gf clicked
clear
pen down
forever
if<<mouse down?> and <([x position v] of [slingshot v]) - (mouse x) > (mouse x) - [15]// mouse down? and x position of slingshot - mouse x > mouse x - 15
set [speed v] to (distance to [slingshot v]) x [3])
set x to (mouse x)
set y to (mouse y)
end
clear
if<<mouse down?> and <([x position v] of [slingshot v]) - (mouse x) > (mouse x) - [15] //if mouse down? and  x position of slingshot - mouse x < mouse x - 15
set [speed v] to (distance to [slingshot v] x [3]
set x to (mouse x)
set y to (mouse y)
end
end
now for the projectile

when gf clicked
forever
set x to ([x position v] of [dot v])
set y to ([y position v] of [dot v])  
repeat until <mouse down?>
set x to ([x position v] of [dot v])
set y to ([y position v] of [dot v])
point towards [mouse-pointer v]
end
set [x v] to (speed) x ([sin v] of [direction v]
set [y v] to (speed) x ([cos v] of [direction v]
broadcast [shoot v] and wait
end
end
when i recieve [shoot v]
repeat until <<<touching [edge v]>> or < (y position) < [-179]// if touching edge or y position < -179
change x by (x)
change y by (y)
change (y) by [-0.2]
set [turn v] to (x) / (y)
if < (turn) > [0]
point in direction (turn)
end
else
point in direction (turn) + [180]
end
end

Last edited by Jodymoses (2012-10-05 00:55:21)


http://i46.tinypic.com/2hxwx9s.png
I Have Huge Ideas, But Only If You Listen And Talk To Me...

Offline

 

#67 2012-10-01 11:34:27

Martiscratch
Scratcher
Registered: 2012-05-04
Posts: 100+

Re: Scripts Workshop: Give and get help with scripts

I like to have my own sig so could I just have a [url]?
(I am not changing it till I know if I can)


http://signaturecraft.us/signatures/eJw1yDEOgCAMBdC9p_gnICphdnA18QwoNZIAJRTD9Z184-uP74gKjxIvxi3tzaii3ZA-PjPijdgxvBpjcCYeeOtKW2Ou3OhIAbuUIOUvpdnNtDhH1tL0AQVCHgk~.png

Offline

 

#68 2012-10-01 15:12:57

ErnieParke
Scratcher
Registered: 2010-12-03
Posts: 1000+

Re: Scripts Workshop: Give and get help with scripts

Jodymoses wrote:

My easiest solution is
to make a
slingshot sprite
small dot sprite
projectile sprite

...let the slingshot x and y pos. be in the bottom left corner but not touching the edge...

For the dot add the following script

when gf clicked
clear
pen down
forever
if<<mouse down?> and<(([x position v] of [slingshot v])) - (mouse x) < 
set [speed v] to ((distance to [slingshot v]) * [3])
set x to (mouse x)
set y to (mouse y)
end
clear
if<<mouse down?> and<(([x position v] of [slingshot v]) - (mouse x)) < 
set [speed v] to ((distance to [slingshot v]?) * [3])
set x to (mouse x)
set y to (mouse y)
end
now for the projectile
when gf clicked
forever
set x to ([x position v] of (dot))
set y to ([y position v] of (dot))  
if <mouse down?>
set x to ([x position v] of (dot))
set y to ([y position v] of (dot))
point towards [mouse pointer v]
end
set [x v] to ((speed) * ([sin v] of (direction)))
set [y v] to ((speed) * ([cos v] of (direction)))
broadcast [shoot v] and wait
when i receive [shoot v]
repeat until <(touching [edge v]?) or <(y position) < [-179]>>
change x by (x)
change y by (y)
change [y v] by (-0.2)
set [turn v] to ((x) / (y))
if < (turn) > (0) >
point in direction (turn)
else
point in direction ((turn) + [180])
end
end

I fixed as much as I could.

Last edited by ErnieParke (2012-10-01 15:18:37)


http://i46.tinypic.com/35ismmc.png

Offline

 

#69 2012-10-01 16:15:17

lizzyhippo
Scratcher
Registered: 2012-04-10
Posts: 89

Re: Scripts Workshop: Give and get help with scripts

Hi! I would love to join and help with scripting!


http://i50.tinypic.com/ofvtpy.png

Offline

 

#70 2012-10-01 19:03:10

awesomeness321
Scratcher
Registered: 2012-08-10
Posts: 100+

Re: Scripts Workshop: Give and get help with scripts

Could someone please give me a wall detection script? I just can't seem to find any good tutorials. (Also, wall jumping would be nice too if it's not too long or complicated. That basically means for me that I can copy it into my project in less than 30 mins.)


My newest project:http://blocks.scratchr.org/API.php?user=awesomeness321&amp;action=projects&amp;type=newest&amp;return=image&amp;num=1Color:#30F9A5 I am currently http://blocks.scratchr.org/API.php?user=awesomeness321&amp;action=onlineStatus&amp;type=text

Offline

 

#71 2012-10-01 21:14:11

Scrap16
New Scratcher
Registered: 2012-10-01
Posts: 2

Re: Scripts Workshop: Give and get help with scripts

hi, i need some help with a kind of inventory, its explained in a thread i made on forum section.

Offline

 

#72 2012-10-02 02:03:25

JH1010
Scratcher
Registered: 2012-05-31
Posts: 1000+

Re: Scripts Workshop: Give and get help with scripts

lizzyhippo wrote:

Hi! I would love to join and help with scripting!

Welcome to the team!

awesomeness321 wrote:

Could someone please give me a wall detection script? I just can't seem to find any good tutorials. (Also, wall jumping would be nice too if it's not too long or complicated. That basically means for me that I can copy it into my project in less than 30 mins.)

Wall detection would have to use the colour sensing blocks. I do not have a clue where to start with wall jumping.

@everyone: I am not forcing you to put the banner in your sig, it is just if you want to and to help advertize this. So if you do not want the banner in your sig you can still be a member.

Last edited by JH1010 (2012-10-02 02:05:09)

Offline

 

#73 2012-10-02 03:31:02

Martiscratch
Scratcher
Registered: 2012-05-04
Posts: 100+

Re: Scripts Workshop: Give and get help with scripts

Martiscratch wrote:

I like to have my own sig so could I just have a [url]?
(I am not changing it till I know if I can)

up1


http://signaturecraft.us/signatures/eJw1yDEOgCAMBdC9p_gnICphdnA18QwoNZIAJRTD9Z184-uP74gKjxIvxi3tzaii3ZA-PjPijdgxvBpjcCYeeOtKW2Ou3OhIAbuUIOUvpdnNtDhH1tL0AQVCHgk~.png

Offline

 

#74 2012-10-03 13:52:51

JH1010
Scratcher
Registered: 2012-05-31
Posts: 1000+

Re: Scripts Workshop: Give and get help with scripts

OMG! Just noticed that there is a 2nd page (I set my posts per page to the maximum which is 75).

Offline

 

#75 2012-10-03 21:08:10

mentagab
New Scratcher
Registered: 2012-10-03
Posts: 1

Re: Scripts Workshop: Give and get help with scripts

I have no idea how to stop the game if you lose 3 points.
please help me!!!!!

Offline

 

Board footer