1.

Solve : Game Maker 7.0 Pro coding help...?

Answer»

I was confused whether to put this thread under ms-windows app's or coding... but it believe it more appropriately FITS here

I am working on a bit of code for it and i cant figure out what is wrong (exactly what im entering word for word, and i have NO coding experiance up UNTILL this):

Quote

if place_free(x+hsp,y){x+=hspeed} else {hsp = -hspeed}
if place_meeting(x+hsp,y,sprite0){hspeed = -hspeed}
if place_meeting(x,y-1,sprite0){sprite0,x+=hspeed}


sorry, im a beginner...  THINK it has somthing to do with spacing the lines but... dunno

~Simitra

EDIT: oh YES the language is GMLAnother ERROR that deals with code im having difficulty understanding whats wrong is:
Quote
___________________________________________
FATAL ERROR in
action number 1
of Create Event
for object object0:

COMPILATION ERROR in code action
Error in code at line 1:
   sprite0 direction+point_direction(x,y,mouse_x,mouse_y)

at position 9: Variable name expected.*

*no  iota of a clue what their asking for... What exactly are you trying to do?Seeing as this was so long ago...


I believe i was trying to make something either aim towards the mouse or follow the mouse...

More likely the former, because I knew then I should have used Cos and Sine...

It doesn't matter, I've moved on to better than GML.


Discussion

No Comment Found