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

#1 2009-07-16 17:21:29

Pokeball
Scratcher
Registered: 2009-05-20
Posts: 8

Interactive Game

If you have an example of a game that allows the user to "explore" a virtual reality (go to different backgrounds when a sprite "touches" certain objects (other sprites), please let me know as I would like to look at the code. I have been trying to work this out for months (off and on) and every option I try doesn't seem to work. THANKS!!

Offline

 

#2 2009-07-16 19:42:06

coka
Scratcher
Registered: 2007-11-03
Posts: 1000+

Re: Interactive Game

This might help...
Walk the Line

The cat in this project touches the blue circle which changes the background. You will need to use the broadcast and recive blocks.


http://i42.tinypic.com/2rot8c2.png

Offline

 

#3 2009-07-16 19:49:32

archmage
Scratcher
Registered: 2007-05-18
Posts: 1000+

Re: Interactive Game

I have a project that creates what you describe but uses text commands. Check my siggy.

All made in 1 day  smile


Hi, I am Archmage coder extraordinaire. I do Scratch,pascal,java,php,html, AS2 and AS3. Leave me a message if you want coding advice. Also check out my personal website, lots of good stuff about web development, Flash, and Scratch (v1 and v2) !

Offline

 

#4 2009-07-16 19:57:26

The-Whiz
Scratcher
Registered: 2007-07-09
Posts: 1000+

Re: Interactive Game

coka wrote:

This might help...
Walk the Line

The cat in this project touches the blue circle which changes the background. You will need to use the broadcast and recive blocks.

Hey cool! I made the original version of that!

Offline

 

#5 2009-07-17 14:11:32

coka
Scratcher
Registered: 2007-11-03
Posts: 1000+

Re: Interactive Game

Here are some scripting pictures that might help.   smile

http://www.gifninja.com/Workspace/c80d571e-8c17-4c13-9bb8-63a6fb9d0098/output.gif

http://www.gifninja.com/Workspace/b4f62758-5df4-4087-b3fd-64aca3f0a973/output.gif


http://i42.tinypic.com/2rot8c2.png

Offline

 

#6 2009-07-17 14:35:10

The-Whiz
Scratcher
Registered: 2007-07-09
Posts: 1000+

Re: Interactive Game

Nice, if a little grainy. I'd also add [wait until <not <touching [sprite2]>>] to that forever script.

Offline

 

#7 2009-07-17 14:48:30

pinochio
Scratcher
Registered: 2009-03-19
Posts: 1000+

Re: Interactive Game

do mwhat coka says  smile


Flat Out G

Offline

 

#8 2009-07-18 01:45:00

greenflash
Scratcher
Registered: 2009-05-27
Posts: 1000+

Re: Interactive Game

check out the whiz's map scrolling demo ( it might be scrolling map demo Idk XD)


http://i48.tinypic.com/2wrkirk.pnghttp://i46.tinypic.com/6r5zk7.pnghttp://i45.tinypic.com/2vtxr1t.png

Offline

 

Board footer