Discuss Scratch

MinerBlaze
Scratcher
29 posts

Create a Portal Game

Hi All,

Does any of you know how to make a simple portal game? I do not the the physics or the mechanics of making the portal gun and the portal. Thanks!



Cool Smart Great
Swag MinerBlaze Awesome
#BestGuyEver Yolo

Check this out! BestProjectEver
Programming_Guru
Scratcher
84 posts

Create a Portal Game

Well, if you already have the platforming engine than the rest is easy! If touching blue portal color go to the other portal color and then wait 0.5 seconds type the same code visa versa. It's really simple. If you want to know how to program the gun you just have it point towards the mouse and when the mouse is down shoot a portal color then you do this for when it's being fired:

point towards [ mouse-pointer]
repeat until <touching [ wall or ground]?>

move ([bulletSpeed) steps
end

Then after that you have it save it's ending position as the portals color position! If I was unclear or you have any more questions reply or comment on my profile I love to help!


“There are only 10 types of people in this world
Those who understand binary and those who don't”


if <(you) = [get this ]> then

You are 1 of that 10

end
SimulatorsTSandFS
Scratcher
16 posts

Create a Portal Game

here is the script



when green flag clicked
forever

if <touching [Portal1 v]?> then

go to [Portal2 v]
end
end

Between “When Flag Clicked” and “forever” do not add a space between them, stick them together

Last edited by SimulatorsTSandFS (June 29, 2014 19:56:15)

MinerBlaze
Scratcher
29 posts

Create a Portal Game

Thank you guys for the help! I didn't know that was so simple! Well I'll consider this topic SOLVED.



Cool Smart Great
Swag MinerBlaze Awesome
#BestGuyEver Yolo

Check this out! BestProjectEver
110Percent
Scratcher
100+ posts

Create a Portal Game

SimulatorsTSandFS wrote:

here is the script



when green flag clicked
forever

if <touching [Portal1 v]?> then

go to [Portal2 v]
end
end

Between “When Flag Clicked” and “forever” do not add a space between them, stick them together

MinerBlaze wrote:

Thank you guys for the help! I didn't know that was so simple! Well I'll consider this topic SOLVED.
HOOOOOOOOOOOOOOOLD ON!

Blaze! Do you want to make a two-way portal gun, or just one-way? This is really important.

Like my content and posts? Give me an Internet!
My 3DS Friend Code: 4785 - 7686 - 6353
Jabo3141596
Scratcher
6 posts

Create a Portal Game

Tanks sooooooo much!!!!
BaronVonCreeper
Scratcher
1 post

Create a Portal Game

SimulatorsTSandFS wrote:

here is the script



when green flag clicked
forever

if <touching [Portal1 v]?> then

go to [Portal2 v]
end
end

Between “When Flag Clicked” and “forever” do not add a space between them, stick them together

Sorry i tried this and it doesn't work, it teleports you randomly

Last edited by BaronVonCreeper (Dec. 8, 2014 17:45:51)

Pro_CrafterZ
Scratcher
15 posts

Create a Portal Game

All i need to know is how to move player from BLUE1 to ORANGE1 and clone it from there.

My status:
Scratcher

Wanna test a little bit of my tests? Go to the comments of my page and I post my projects!
repeat (4)

forever

end

end
SO_MUCH_NOPE
Scratcher
77 posts

Create a Portal Game

I wanna make a portal game but how do I even turret?!? and thanks for the solution to the portal gun. _waffle_

when green flag clicked
forever
Make Progress
Be Unable to Code Something
Get Stuck In Development
Bang Head On Desk
gamermaker_tester
Scratcher
8 posts

Create a Portal Game

here is the turret script that is shooting
define 
if <> then

end
<key [ v] pressed?>
set pen color to [#ff0088]
play note ( v) for (0.5) beats
play drum ( v) for (0.2) beats

Last edited by gamermaker_tester (Jan. 22, 2016 11:07:34)

Powered by DjangoBB