Hello, thanks for visiting GameML, if you are a Game Maker user, this is the site for you, please sign up, or login if you are already a member, or just browse the site! Welcome to GameML!

ATTENTION MEMBERS!!! USERS CAN NOW SIGN UP AGAIN!
Log in

I forgot my password

Search
 
 

Display results as :
 


Rechercher Advanced Search

Site Hits
Free hit counter
These stats started at 0 on July 7th 2009
GameML File Sharing
USERNAME: gamemladmin@gmail.com PASSWORD: gamemlsite Upload Here: http://gameml.iowoi.org/GameML-File-Sharing-h3.htmPlease add only games.
Create A GAMEML BLOG!
Make a Blog on GameML:http://gamemlblogs.wetpaint.com
Keywords


pinky's error

View previous topic View next topic Go down

pinky's error

Post by The Dark Ninja on Fri Nov 27, 2009 5:04 pm

i have an error in my pacman game

___________________________________________
FATAL ERROR in
action number 1
of End Step Event
for object obj_pinky:

COMPILATION ERROR in code action
Error in code at line 6:
}

at position 2: Symbol , or ) expected.









the code is
if global.getpacmanpinky=1
{
if global.pinkyt=1
{
if global.pinkyx > obj_pacman.x - 100
{
move_towards_point(obj_pacman.x,obj_pacman.y,4)
}
}
else
if global.pinkyt=2
{
if global.pinkyx < obj_pacman.x + 100
{
move_towards_point(obj_pacman.x,obj_pacman.y,4)
}
}
else
if global.pinkyt=3
{
if global.pinkyy < obj_pacman.y + 100
{
move_towards_point(obj_pacman.x,obj_pacman.y,4)
}
}
else
if global.pinkyt=4
{
if global.pinkyy > obj_pacman.y - 100
{
move_towards_point(obj_pacman.x,obj_pacman.y,4)
}
}
avatar
The Dark Ninja
Super 500 GML
Super 500 GML

Posts : 1495
Points : 33704
GameML Reputation : 7
Join date : 2009-06-16
Location : Earth

View user profile http://www.thedakninja.tastyhamgames.com

Back to top Go down

Re: pinky's error

Post by The SNIC on Fri Nov 27, 2009 7:28 pm

line 6:
if global.pinkyx
you forgot the decimal TDN

_________________
My site is new and good! and it's going to be able to host games and stuff! Check it out! http://cazigeneration.vampire-legend.com/index.htm
avatar
The SNIC
Moderator
Moderator

Posts : 677
Points : 31610
GameML Reputation : 4
Join date : 2009-07-10
Age : 1008
Location : MI

View user profile http://www.youtube.com/gigaroid

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum