Jump to content


_163807

Member Since 02 Jul 2010
Offline Last Active Jul 14 2012 08:33 AM

Topics I've Started

3rd Person Shooter problem

19 March 2012 - 11:56 PM

I can't seem to figure this out.  I've been trying so many different things and read so many topics and tutorials ... even youtube videos but this darn thing just doesn't wanna work for meh!
I'm obviously not a mathmatical genius xD...

    ball_speed = 0.7

    if target_lock!=-4
    {

    pitch = arctan2(point_distance(x,y,target_lock.x,target_lock.y),point_distance(0,z+2.5,0,target_lock.z))
    zpeed=sin(pitch)*ball_speed

    }
    ///in later step event
    z+=zspeed

Someone already suggested that I use arctan2() but needless to say that didn't work.
I think it's obvious what I'm trying to do and the speed should be adjustable accordingly.  >.< Helps Plz~! <3 u all in advance.

Illegal argument count 8.1

18 April 2011 - 04:32 AM

So I've upgraded to GameMaker 8.1 Standard. Now all my games give me this returning error:

Illegal argument count calling script "create_text".
Script requires 3 arguments, 1 have been supplied.


This is one of my scripts:

if argument0=END
{
tb.status = true
EVENT_ACTIVE=true
}

if argument0=BEGIN
{
tb = instance_create(0,0,obj_TextBox)
tb.status = false
tb.textbox_max_talk = 0
tb.my_event = argument1
tb.my_event1 = argument2
    for(i=0;i<30;i+=1)
    tb.tcol[i]=c_white
}

Now this use to work in previous versions until the upgrade. I don't want to go and add 2 unneeded arguments to all the lines that calls this script. Is there a way to fight this without going through that silly hassle. Do you this this error check is a bit too harsh? Now I'll have to update plenty games to avoid this.