Jump to content


Nubcake

Member Since 18 Feb 2010
Offline Last Active Jun 10 2013 10:02 AM

Posts I've Made

In Topic: Checking Within Fov

09 March 2013 - 12:58 AM

I think this is very useful
http://active.tutspl...n-a-flash-game/

In Topic: Custom Sprite Collision In Gml

25 February 2013 - 01:26 PM

Forgot to say you want to be looking at Part 1 first not Part 2 which is the link I posted.

In Topic: Custom Sprite Collision In Gml

24 February 2013 - 07:53 PM

I think you might find this is what you're looking for ?
http://active.tutspl...-field-of-view/
(This is part 2 look at part 1)
I wrote some code adapted from this tutorial and it worked very nicely for what I wanted.

In Topic: Make Object Follow Object.

20 February 2013 - 01:10 AM

I have an object, we will call him Bob. I have another object we will call him Starvingbrainsucker.

I create Starvingbrainsucker on Bob's head.

I want Starvingbrainsucker to stay on Bob's head.

If bob jumps, runs, attacks, rolls over, whatever. I want the Starvingbrainsucker to stay in its exact position relevant to Bob at all costs.

I feel like this should be easy and I'm probably missing something insanely simple...


Just make Starvingbrainsucker's x & y co-ordinates the same as Bob's ?

In Topic: Spiral Around Point

19 February 2013 - 11:02 PM

My earlier post had an example that was using the lengthdir functions and it worked when I tested it too. But the reason I used lengthdir was because I can't do the math myself like you just posted, heh.


The lengthdir functions simply return the horizontal/vertical components of a vector ; See this topic here for more info http://wiki.yoyogame...php/Lengthdir_x
Similarly it is the same as using Cos/Sin

//Lengthdir_X(len,dir)
//dir is in degrees
Cos(dir) * len 
//Lengthdir_Y(len,dir)

Sin(dir) * len