Welcome Guest [Log In] [Register]
Hey there, guest! Either you forgot to log in or you're new here. If you're new, why don't you stop by and read the Lemon's Laws, maybe even join our fine forum?

Username:   Password:
Add Reply
Game Maker Help
Topic Started: Oct 21 2012, 11:04 PM (363 Views)
Doc
Member Avatar
jizz-cuzzi
 *  *  *  *  *  *  *
I have A platformer set up for a game i'm making, and I already have a test room.
the physics are great, and everything works, except for one thing.
on the slope i made, there's a glitch where the character can go through the slope if you jump on it. you can walk over it fine though.

EX. supposed to be like this:

Posted Image

But if you figit around on the slopes or jump inbetween them this happens:

Posted Image

Any help?

Also, there's no code for the slope, it's a solid object with a transparent half.

Offline Profile Quote Post Goto Top
 
Demonlemon
Member Avatar
MY CHILDREN COMETH
 *  *  *  *  *  *  *
are the blocks perhaps jump through-able?
Happiness is like wetting yourself, everyone can see it, but only you can feel the warmth.
Offline Profile Quote Post Goto Top
 
Datt
Member Avatar
potato
 *  *  *  *  *  *  *
are you using the built in physics in Game Maker Studio?
Posted Image
ᕕ( ᐛ )ᕗ
Offline Profile Quote Post Goto Top
 
Doc
Member Avatar
jizz-cuzzi
 *  *  *  *  *  *  *
Datt
Oct 22 2012, 02:22 AM
are you using the built in physics in Game Maker Studio?
No, custom. Learned how to code off YouTube.

@DL: no. They're just solid objects.
Offline Profile Quote Post Goto Top
 
Datt
Member Avatar
potato
 *  *  *  *  *  *  *
care to provide the collision code?
Posted Image
ᕕ( ᐛ )ᕗ
Offline Profile Quote Post Goto Top
 
JuicyJuice
Member Avatar
Super Sexy Stoner Surfer Station
 *  *  *  *  *
Posted Image


:V
not here anymore
Offline Profile Quote Post Goto Top
 
Doc
Member Avatar
jizz-cuzzi
 *  *  *  *  *  *  *
Player Create Code:

Code:
 
image_index = floor(random(image_number));
image_speed = 0;
max_spd = 4;
acc_spd = 0.5;
jmp_spd =-8;

grv_spd = 1;
grv_dir = 270;
air_frc = 0.15;
gnd_frc = 0.85;
max_slp = 2;

hsp = 0;
vsp = 0;
free = 1;
spr_dir = 1;
hold = 0;


And player Step Code:

Code:
 
motion(keyboard_check(vk_right)==1,keyboard_check(vk_up)==1,keyboard_check(vk_left)==1);


Also, here's a motion script I learned to code online:

Spoiler: click to toggle
Offline Profile Quote Post Goto Top
 
Espejo
Member Avatar
You lookin' at me, boi?
 *  *  *  *  *  *  *
None of the objects are solid, right?
Offline Profile Quote Post Goto Top
 
Doc
Member Avatar
jizz-cuzzi
 *  *  *  *  *  *  *
Ohjambangle
Oct 23 2012, 06:49 AM
None of the objects are solid, right?
:V

I'll try that when I get home.
Offline Profile Quote Post Goto Top
 
Doc
Member Avatar
jizz-cuzzi
 *  *  *  *  *  *  *
BAM, a test .EXE


AND YES, IT CAN AND WILL HARM AND EFFECT YOUR COMPUTER AAAAARRRGGGG

https://www.box.com/s/onl0kiwhvvdfbyvn92rt
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
ZetaBoards - Free Forum Hosting
Enjoy forums? Start your own community for free.
« Previous Topic · Games and Development Forum · Next Topic »
Add Reply

hey there. i'm surprised you're reading this. but you should get back to the forum. have fun :] youmu > meiling Beep beep boop