me and my friend cannot make one work well. We have it so that our guy touches this sprite (our portal) and when he touches that, he goes to the other portal that we have set up. but when we step over it it doesnt always workkkk. We have gravity involved into our game too. so if we run off a ledge, we fall... etc
Offline
You can either have the sprite move to a different part of the screen right when he touches the portal, or you can move the portal to a different location. The reason this would be happening is because when the sprite touches the portal, the sprite is already on the portal for the next level. It has to be not touching the portal at the beginning at the next level.
^^And yes, uploading will make it a lot easier to see, as post above says.
Offline
Why not post the project, so we can download it and find the problem?
EDIT: 1999th post!!
Last edited by henley (2011-11-18 15:59:38)
Offline
What you need for a Portal is you first need to make a Portal.Then if you fall in one make it so there IS another one so you can go to that portal.This would be the Script.
When (Green Flag) Clicked
Hide
When I Recive{Portal Time}
Show
Stamp
Wait until touching{Charactar}
Clear
Hide
And for the Charactar...
When(Green Flag)Clicked
Show
Forever
If{Key B Pressed?}
Set Variable{Portal Type}to{Blue}
If{Mouse Down?}and{Portal Type=Blue}or{Portal Type=Orange}
Brodcast{Portal Time}
If{Key O Pressed?}
Set Variable{Portal Type}to{Orange}
Hope I helped!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Last edited by chance2001 (2012-03-18 12:27:07)
Offline
chance2001 wrote:
What you need for a Portal is you first need to make a Portal.Then if you fall in one make it so there IS another one so you can go to that portal.This would be the Script.
When gf Clicked Hide When I Recive [Portal Time v] Show Stamp on Wait until <touching [character]> Clear stamp HideAnd for the Charactar...When gf Clicked Show Forever If <key space [b] pressed?> Set [portal type] to [(blue)] If <<Mouse Down?> and <(portal type) = (Blue)> or <(Portal Type) = (Orange)>> Brodcast [portal time v] If <key space [o] pressed?> Set [portal type] to [(orange)]Hope I helped!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Tried fixing it.
Offline
when I go on this site ,and I look at how to do stuff, I find some with red boxes and when I look at scratch I can't find them, so if anyone would tell me what they are and how to get the it would help alot
Offline
CrazyMarshmallow wrote:
when I go on this site ,and I look at how to do stuff, I find some with red boxes and when I look at scratch I can't find them, so if anyone would tell me what they are and how to get the it would help alot
The red boxes aren't real, they're just the color of the block sometimes when in forums. For instance, the
<touching [character]>is really the that first sensor block.
Last edited by pi3 (2012-04-05 12:49:17)
Offline
also where can I find stamp on and stamp clear and when I receive not as a starting point
Offline
CrazyMarshmallow wrote:
also where can I find stamp on and stamp clear and when I receive not as a starting point
If you have a question, make a new thread about it. It would also help if you made sense.
Offline
where do I find (on scratch): when I receive (not as a start of a command), stamp on and clear stamp. Sorry if you can't help or if you don't understand.
Offline
"When I receive" is in the Control tab (near the top) and both "stamp" and "clear" are in the Pen tab (clear is at the top, stamp is in the middle I think).
If you have a question though, you should start a new thread about it, by clicking "Post new topic" in the correct forum
Offline