Jump to content


uberifix13

Member Since 26 Feb 2012
Offline Last Active Jun 01 2012 02:35 AM

Posts I've Made

In Topic: Destroy Instance Help

13 March 2012 - 12:51 PM

I'm changing the name to detector
thanks for the help

edit
how do i check for
mydetector-collides with playerpistol

In Topic: Platformer Glitch

03 March 2012 - 11:14 PM

thanks!!! also i am gonna be offline for a few hours.

In Topic: Platformer Glitch

03 March 2012 - 11:08 PM

Have two key checks, but in DnD itīs more complex and normally you would have to set a variable to achieve this as well...

So, say you want to check "shift" and "W"... You would create a variable in the create event called "modify" or something and set it to 0. Then in the KEY PRESS event of "W" AND the KEY PRESS event of "shift" you would then add 1 onto "modify" (set the variable to 1 and check the relative box). Next, in the KEY RELEASE event for those two keys you would take one off "modify" (set var to -1 relative). Finally, in the NORMAL KEYBOARD event you would have :

test variable "modify" equal 2

open block

whatever here as BOTH keys are pressed (it equals two)

close block

else

open block

whatever here as one key is pressed

close block



There you go and I hope that helps!


:wacko: Uhh... whats the gml way? i know a bit of coding but I use dnd when in a rush.

In Topic: Platformer Glitch

03 March 2012 - 10:51 PM

k i'll try

edit- how do i check for two keys pressed at once?

In Topic: Platformer Glitch

03 March 2012 - 10:43 PM

D to walk right
A to walk left
walking right and w is jump right
walking left and w is jump left
walking right and space is slide right
walking left and space is slide left

edit- if you can can u make this all 1 obj please?