Jump to content


blobstah

Member Since 07 Sep 2007
Offline Last Active Mar 09 2012 01:28 AM

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:

  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...

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!!

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
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
    Posted Image
Additional Info:
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:
Posted Image

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;