if x>5
{
x=1;
else
x+=2;
}
FATAL ERROR in
action number 1
of Step Event
for object object0:
COMPILATION ERROR in code action
Error in code at line 4:
else
^
at position 6: Unexpected symbol in expression.
help...
- Game Maker Community
- → Viewing Profile: Topics: blobstah
blobstah
Member Since 07 Sep 2007Offline Last Active Mar 09 2012 01:28 AM
Community Stats
- Group New Member
- Active Posts 181
- Profile Views 2270
- Member Title GMC Member
- Age 19 years old
- Birthday January 6, 1994
-
Gender
Not Telling
-
Location
BEHIND YOU!
-
Interests
GM and soccer... :)
0
none
Topics I've Started
Else command not working
11 September 2010 - 02:21 AM
For some reason gm8 keeps throwing me an error when I use the else command:
Programmer Looking For Task
19 March 2009 - 03:49 AM
I will do any job big or small, just pm me. I have 2 years of programming experience and I use gm7 pro.
Note: I DO NOT DO 3D, RETAIL, FANGAMES OR ONLINE GAMES!!
Note: I DO NOT DO 3D, RETAIL, FANGAMES OR ONLINE GAMES!!
Why Isn't This Working?
02 January 2009 - 03:08 AM
Could anyone tell me why this is not working?
Here' s my script:
scr_accel
Here' s my player' s create event:
Here' s my player' s step event:
I see no reason why this should not be working, so someone please HELP!
Here' s my script:
scr_accel
argument0+=argument1;
Here' s my player' s create event:
Spd=0; Accel=0.3;
Here' s my player' s step event:
x+=Spd; scr_accel(Spd,Accel)
I see no reason why this should not be working, so someone please HELP!
Simple Lighting Example (uses Surfaces)
02 November 2008 - 09:15 PM
- Title: Simple Lighting Example
- Description: A simple lighting example that uses surfaces, aimed towards intermediate-begginer users.
- GM Version: Gm6
- Registered: Yes
- File Type: .gm6
- File Size: 9.69 kb
- File Link:
64Digits
MediaFire

Post code snippets of anything that you think can be improved.
Thank you for reading this topic, please post any bugs/errors that you find.
Here is a screenshot:
Opposite_direction
02 November 2008 - 01:50 AM
This script returns an opposite direction to the one that you input:
//opposite_direction(direction)
//returns the opposite direction of the direction that you input
//made by blobstah
var dir;
if argument0>180
{
dir=(argument0-180)
}
else
{
dir=(argument0+180)
}
return dir;
- Game Maker Community
- → Viewing Profile: Topics: blobstah
- Privacy Policy
- GMC Rules and Forum Rules ·



Find content