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

#1 2012-03-01 09:38:08

Master30564
New Scratcher
Registered: 2012-03-01
Posts: 1

Changing area

I am trying to make a game for my GCSE project,
I am trying to make like a village, and I start of inside a house, but I want to make it so when i walk to the door, when touched, the background changes to like outside, then I can walk around there then walk to other houses and go through doors

What is the scripting that I will need to be able to do this? Help would be greatly appreciated, and if possible print screens  big_smile

Offline

 

#2 2012-03-01 11:43:05

undefeatedgames
Scratcher
Registered: 2011-05-22
Posts: 1000+

Re: Changing area

Master30564 wrote:

I am trying to make a game for my GCSE project,
I am trying to make like a village, and I start of inside a house, but I want to make it so when i walk to the door, when touched, the background changes to like outside, then I can walk around there then walk to other houses and go through doors

What is the scripting that I will need to be able to do this? Help would be greatly appreciated, and if possible print screens  big_smile

when gf clicked
forever
   if <touching? (door v)>
   broadcast [outside v]
end

when i receive [outside v]
switch to background [outside v]

Last edited by undefeatedgames (2012-03-01 11:49:30)


Please call me udg or bearsfan, not undefeated.
Scratch and Misc.! Click here for Misc.'s Successorhttps://lh3.googleusercontent.com/-jkhes3yzmQk/T7G_BnxT9xI/AAAAAAAABYI/xhoN1Jk2M08/s513/sigp1.gif

Offline

 

#3 2012-03-01 11:47:20

joefarebrother
Scratcher
Registered: 2011-04-08
Posts: 1000+

Re: Changing area

when gf clicked //in the sprite
forever
 if <touching [door v]?>
  broadcast [outside v]

when i receive [outside v] //in the stage
switch to background [outside v]

Last edited by joefarebrother (2012-03-01 11:47:47)


My latest project is called http://tinyurl.com/d2m8hne! It has http://tinyurl.com/d395ygk views, http://tinyurl.com/cnasmt7 love-its, and http://tinyurl.com/bwjy8xs comments.
http://tinyurl.com/756anbk   http://tinyurl.com/iplaychess

Offline

 

#4 2012-03-01 11:49:48

undefeatedgames
Scratcher
Registered: 2011-05-22
Posts: 1000+

Re: Changing area

Hope this helps!


Please call me udg or bearsfan, not undefeated.
Scratch and Misc.! Click here for Misc.'s Successorhttps://lh3.googleusercontent.com/-jkhes3yzmQk/T7G_BnxT9xI/AAAAAAAABYI/xhoN1Jk2M08/s513/sigp1.gif

Offline

 

Board footer