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!

Join the forum, it's quick and easy

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!
Would you like to react to this message? Create an account in a few clicks or log in to continue.
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: https://gameml.forumotion.com/GameML-File-Sharing-h3.htmPlease add only games.
Create A GAMEML BLOG!
Make a Blog on GameML:http://gamemlblogs.wetpaint.com

pinky's error

2 posters

Go down

pinky's error Empty pinky's error

Post by The Dark Ninja 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)
}
}
The Dark Ninja
The Dark Ninja
Super 500 GML
Super 500 GML

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

http://www.thedakninja.tastyhamgames.com

Back to top Go down

pinky's error Empty Re: pinky's error

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

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

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

https://www.youtube.com/gigaroid

Back to top Go down

Back to top

- Similar topics

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