Jump to content


KaptainKool96

Member Since 22 May 2011
Offline Last Active Nov 24 2011 03:31 AM

Posts I've Made

In Topic: movement LIB

29 June 2011 - 12:38 AM


here is a little library that i made a little while ago. it includes the joystick actions i made a while back and more.

movement with the arrow keys and the WASD keys. no credit needed. (although it would be ok i guess)
download it HERE. it works with the lite version.
(and its free, why not?)

also, if you want, here is the code for controlling an object with the left joystick.

if joystick_xpos(1) = 0
hspeed = 0
else
hspeed = joystick_xpos(1)*(5)

if joystick_ypos(1) = 0
vspeed = 0
else
vspeed = joystick_ypos(1)*(5)

EDIT: Also,please comment.


Ummmmmmmmmm......... I have 8.1 and I wanted to try this out, but I couldn't figure out what to do with your file. Can you instruct me on how to do so? I do not have a library folder in GM anywhere.

in game maker 8.1 the lib folder is located in your computer's Appdata folder. the folder is hidden so to find it you will have to run a search on your computer.

try this location. C:\Users\YOUR USERNAME\AppData\Roaming\GameMaker\lib

In Topic: Joystick compatibility

24 June 2011 - 03:44 AM

I made a library just for people like you. here it is movement LIB.

it has joystick support and much more. hope it helps.
and yes, lite version works.

In Topic: need a laser thing.

20 June 2011 - 02:21 AM

Set the color and everything, then

draw_line(x,y,mouse_x,mouse_y)
draw_self()


that works great, but now im trying to get the laser to stop at some objects. it also stops at the mouse position, i don't realty want it to do that.

thanks for your help.

In Topic: Game Maker 8.1 not working

17 June 2011 - 06:05 PM

Not a virus of any sorts, its a bug, that many users reported. Game Maker 8.1 broke everything, but at least they working to fix it, or so they say.
Check Bug Reports page because i think i've seen a work-around to that problem there somewhere, or just go back to 8.0 until it's fixed.


oh. ok. well i guess people can disregard my comment.

In Topic: Making an apple fall properly

17 June 2011 - 04:15 PM

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ummm... that looks great gut i would just put this is a collision event with the floor:
move_contact_solid(direction,12)
vspeed=0
you do need the floor object and the whatever is falling to be solid. however, this does not have a bouncing effect. i just think a shorter code would be best for first time users.