I need help with portal physics

project
idea_help

#1

I'm trying to make a Portal game thing on Hopscotch, but I can't get the portals to work right. I always keep falling through the floor every time I go through a portal, and the orange one just doesn't work! And the gravity is glitchy. Can I get some help on this?


#2

What's Portal? Do you want to make the game that's called Portal or a regular Portal?


#3

The game Portal, but just an empty room.


#4

Can you give us a link, so we can look at the code?


#5

Sounds really fun! I'd like to help but as Dude73 said, we'd need the link.


#6

#7

So, is anyone changing the code to make it work? Is anyone doing anything?


#8

I don't really see the problem...


#9

Have you TRIED infinite falling? It's glitchy and whenever you stop you fall through the floor!


#10

To fire portals, tap the circles, then tap the surface you want to place one on.


#11

Almost all the code is in the person.


#12

Hey @Healeybot1. Let me check out the code first.


#13

Since you only have the floor to stop the character from falling, the gravity will be pretty simple.


This is the basic gravity.


#14

Change
When 7=7 to When Game Starts, Repeat Forever
because it's less glitchy.
I forgot who did research about that, though..


#15

Yea, that's right. It was Thinbuffalo :D


#16

I tried that, and this happened.


#17

The Velocity variable was set to 500 in the beginning, that's why it disappears.

Also, you can change the amount that Velocity is decreased by to give a more realistic effect.


#18

The floor still doesn't work, tho.


#19

Good news! I finally fixed the floor and main portal functionality, and released it as beta 8.5!


Now I just need help with relative momentum.


#20

Turns out the floor wasn't working because I had it set like this:


when (Self) bumps (Platform)
Set (TouchingFloor) to (1)