Lately, i've been working on a 3D FPS portal game.
It is my first 3D project ever.
But it is hard and I need some help...
Well, first, here 2 screenshots of the game:


PORTALGUNBLUE CODE
I already have the code when you click:
if can_shoot = 1 and image_speed = 0
{
can_shoot = 0
image_speed = 1
sound_play (snd_pgunblue)
player.zdirection += 0.02
}Then there is a animation that the gun gets a bit of recoil.The actions after animation:
set image_speed to 0
set can_shoot to 0
change object in PortalGunOrange
There are other codes, but i'm not telling them.
The object PortalGunOrange has the same codes.
But my problem now.
I have no idea how i'm gonna create portals, and the orbs that create portals.
That are missing in the codes when you click.
So the parent of all solid objects is the object: object_basic.
So when the portal shoots an orb and the orb hits any object_basic object he changes in to a portal.
So I need the codes for 4 objects:
Orange orb
Blue orb
Orange portal
Blue portal
I want the effect of the code exactly like in portal (fast thing comes in, fast thing comes out)
If you need other codes from other objects to create a portal then tell me.
Please help.











