View Full Version: Help!!!!!

Game Maker > Questions and answers > Help!!!!!


Title: Help!!!!!
Description: i'm stuck by gml


gert gregoor - February 1, 2004 04:25 PM (GMT)
[B][FONT=Times][SIZE=7][COLOR=red]
I've a problem.
I was creating a outbreak game with an pong game inside!

well for the pong-game I made two difficulties:
normal and hard.

I used 5 objects

player1
bat2
bat3
bal
wall

now in the step event of obj.bat2(who is the enemy in the normal mode)I've put the following code:

{
if
bat2.y+25<bal.y
then
y+=3
}

and also the following code

{
if
bat2.y-25>bal.y
then
y-=3
}

in the step event of obj.bat3 I putted the same codes only i changed the 3 into a 4.

when i play in the normal mode it's the player1.obj who follows the ball automaticly and in the hard mode the walls who have no events are moving

so can someone help me?


(&Cry&)




Hosted for free by InvisionFree