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

#1 2009-06-01 13:22:21

Mitch99
Scratcher
Registered: 2009-05-15
Posts: 51

Portal Ideas

To anyone who dosen't know why i made this, i'm planning to make a game but need ideas and i'm having a friend help. if you must peek at the story then at least don't spoil it for anyone else, and i plan to release updates for the public.

Offline

 

#2 2009-06-01 14:35:37

Oneandonly
Scratcher
Registered: 2009-02-07
Posts: 100+

Re: Portal Ideas

Repost to inspiration and more.

Last edited by Oneandonly (2009-06-01 14:35:48)

Offline

 

#3 2009-06-01 23:43:14

croatoan
Scratcher
Registered: 2008-01-25
Posts: 12

Re: Portal Ideas

ok, so i have a question. is the game a portal game or is it another game?

Offline

 

#4 2009-06-02 13:34:26

Mitch99
Scratcher
Registered: 2009-05-15
Posts: 51

Re: Portal Ideas

ok, its a portal game, as in you make portals to go plases and solve puzzles, and it's goting to be 2-d, i'll release what i have so far, and keep in mind that i have been working on it for about an hour. the sprites are rough and not going to be used in the real game, like the stick man, he will be replaced, and the portal gun will be replaced. and in case you were wondering, the stickman is from a sample game

Offline

 

#5 2009-06-03 13:07:26

Mitch99
Scratcher
Registered: 2009-05-15
Posts: 51

Re: Portal Ideas

sorry, had to run, it will be up in a sec

Offline

 

#6 2009-06-03 13:47:28

Mitch99
Scratcher
Registered: 2009-05-15
Posts: 51

Re: Portal Ideas

k, it's up, so i'm working on stopping him from going into the walls right now. and this is the script i'm using for the portals
(In stickman)
<when green flag clicked>
<forever><if>
<touching[ blue portal ]>
<broadcast[ blue hide ]>
<go to[ Orange portal ]>

<when green flag clicked>
<forever>
<if><touching[ orange portal ]>
<broadcast[ orange hide]>
<go to[ blue portal ]>

(and in the blue portal)
<when I receive[ orange hide ]>
<hide>
<wait( 1 )secsc>
<show>

(and in the orange portal)
<when I receive[ blue hide ]>
<hide>
<wait( 1 )secsc>
<show>

What i tryed using was simply
(for stickman)
<when green flag clicked>
<forever>
<if><touching[ Blue portal ]>
<go to[ orange portal ]>

and vise-versa. the problem was as soon as the guy made the trip, he would be in the orange portal then have to go to the blue portal, then get sent back to the orange portal and so on, any suggestions?

Last edited by Mitch99 (2009-06-03 13:52:59)

Offline

 

#7 2009-06-03 15:11:59

cheddargirl
Scratch Team
Registered: 2008-09-15
Posts: 1000+

Re: Portal Ideas

Mitch99 wrote:

k, it's up, so i'm working on stopping him from going into the walls right now. and this is the script i'm using for the portals
(In stickman)
<when green flag clicked>
<forever>
<if><touching[ blue portal ]>
<broadcast[ blue hide ]>
<go to[ Orange portal ]>

<when green flag clicked>
<forever>
<if><touching[ orange portal ]>
<broadcast[ orange hide]>
<go to[ blue portal ]>

(and in the blue portal)
<when I receive[ orange hide ]>
<hide>
<wait( 1 )secsc>
<show>

(and in the orange portal)
<when I receive[ blue hide ]>
<hide>
<wait( 1 )secsc>
<show>[/blocks]

What i tryed using was simply
(for stickman)
<when green flag clicked>
<forever>
<if><touching[ Blue portal ]>
<go to[ orange portal ]> [/blocks]

and vise-versa. the problem was as soon as the guy made the trip, he would be in the orange portal then have to go to the blue portal, then get sent back to the orange portal and so on, any suggestions?

The problem is that you have a forever loop going on so the main character sprite will continuously keep transporting. If it were me, maybe I would have it so that the user would have to press a button to go into a portal, instead of simply using touch sensing. Maybe something like this?:

when green flag clicked
     forever if key [space] pressed
          if touching [blue portal]
               broadcast[blue hide]
               go to[Orange portal]

etc. with the other scripts.


http://i.imgur.com/8QRYx.png
Everything is better when you add a little cheddar, because when you have cheese your life is at ease  smile

Offline

 

#8 2009-06-04 13:13:02

Mitch99
Scratcher
Registered: 2009-05-15
Posts: 51

Re: Portal Ideas

cheddargirl wrote:

Mitch99 wrote:

k, it's up, so i'm working on stopping him from going into the walls right now. and this is the script i'm using for the portals
(In stickman)
<when green flag clicked>
<forever>
<if><touching[ blue portal ]>
<broadcast[ blue hide ]>
<go to[ Orange portal ]>

<when green flag clicked>
<forever>
<if><touching[ orange portal ]>
<broadcast[ orange hide]>
<go to[ blue portal ]>

(and in the blue portal)
<when I receive[ orange hide ]>
<hide>
<wait( 1 )secsc>
<show>

(and in the orange portal)
<when I receive[ blue hide ]>
<hide>
<wait( 1 )secsc>
<show>[/blocks]

What i tryed using was simply
(for stickman)
<when green flag clicked>
<forever>
<if><touching[ Blue portal ]>
<go to[ orange portal ]> [/blocks]

and vise-versa. the problem was as soon as the guy made the trip, he would be in the orange portal then have to go to the blue portal, then get sent back to the orange portal and so on, any suggestions?

The problem is that you have a forever loop going on so the main character sprite will continuously keep transporting. If it were me, maybe I would have it so that the user would have to press a button to go into a portal, instead of simply using touch sensing. Maybe something like this?:

when green flag clicked
     forever if key [space] pressed
          if touching [blue portal]
               broadcast[blue hide]
               go to[Orange portal]

etc. with the other scripts.

hmm... good idea, what do you think croatoan?

Offline

 

#9 2009-06-04 13:42:25

Mitch99
Scratcher
Registered: 2009-05-15
Posts: 51

Re: Portal Ideas

ahhhhhhhhhhhhhhh, the code isn't working, i posted in the right forum so i should get some help soon...

Offline

 

#10 2009-06-05 02:23:03

croatoan
Scratcher
Registered: 2008-01-25
Posts: 12

Re: Portal Ideas

i have an idea! i'll see if it works then post it if it does!

Offline

 

#11 2009-06-09 13:37:08

Mitch99
Scratcher
Registered: 2009-05-15
Posts: 51

Re: Portal Ideas

ok, i fixed the walls and the portals, the portals going into the wall need a slight bit of work, whick i have an idea for but heres the project (link to project)


LOL!!! i just found  wierd glich. the portal bounces off a curtain angle. shoot for the center of the orange spot

Last edited by Mitch99 (2009-06-09 13:44:17)

Offline

 

#12 2009-06-11 13:18:26

Mitch99
Scratcher
Registered: 2009-05-15
Posts: 51

Re: Portal Ideas

Cronaton!!!!!! Where are you?!?! i'm offically losing scratch this friday so i need a story and a player sprite. i've got evetything else worked out.

Offline

 

#13 2009-06-12 13:08:51

Mitch99
Scratcher
Registered: 2009-05-15
Posts: 51

Re: Portal Ideas

ok, i can't get on scratch anymore. i wish there was a way to upload a project with out using scratch becuase i've got the portals figured out.

Offline

 

#14 2009-06-12 22:53:49

Dibbo222
Scratcher
Registered: 2007-11-03
Posts: 100+

Re: Portal Ideas

when you've trasported to the orange portal use "wait untill NOT touching orange portal"


The biggest tower defense game on Scratch?
http://scratch.mit.edu/projects/Dibbo222/929092

Offline

 

Board footer