hey i would seriously like some help with my game, a guy promised to make me an example in exchange for a sprite, never got the example, so i seriously need to get this bug fixed.
heres teh situation:i am using wasd controls and w is to jump, so i make it so that when you hit a ground object you vspeed get set to 0 but i am using h speed to move and i need to not stick to walls when i hit them from the side. PLEASE HELP!!Power hath descended forth from Thy hand...
Posted by sk8m8trix on Oct. 20, 2006, 7:11 p.m.
Why is he banned?
Rest in ban
RIB REST IN BAN
MMM RIBSmaybe
aha MASSIVE WARN!!!
hes not banned
hold your mouse over his badges.
I'll look at the way I did it.
createvar imagexscaleto,gun_xscaleto; imagexscaleto=0; gun_xscaleto=0; move_higher(0) if(keyboard_check(ord("W"))&&place_meeting(x,y+1,block)){move_higher(0);vspeed=-fps_based_speed(60,40);} if(keyboard_check(ord("A"))&&place_free(x-8,y-11)){hstep-=fps_based_speed(60,0.1);image_xscaleto=-1;gun_xscaleto=-1} if(keyboard_check(ord("D"))&&place_free(x+8,y-11)){hstep+=fps_based_speed(60,0.1);image_xscaleto=1;gun_xscaleto=1} if(keyboard_check(ord("S")))vspeed=fps_based_speed(60,30); if(!place_free(x,y+1))gravity=0; else gravity=fps_based_speed(60,1)/((fps+(fps==0))/60); if(vspeed>fps_based_speed(60,30))vspeed=fps_based_speed(60,30); if not(keyboard_check(ord("A"))||keyboard_check(ord("D")))hstep=hstep*fps_based_speed(60,0.9); if(abs(hstep)<fps_based_speed(60,0.1))hstep=0; if(abs(hstep)>fps_based_speed(60,8))hstep=fps_based_speed(60,8)*sign(hstep) if(place_free(x+hstep,y-11)){x+=hstep;move_higher(0);}var n; for(n=0;n<12;n+=1) { if(place_free(x+argument0,y-n)) { y-=n break; } }finally, hes banned! :D