Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - N3ON

Pages: [1]
1
Programming Questions / Re: AI Question
« on: December 18, 2016, 03:12:46 PM »
You could use the built in gravity_direction to have the desired behaviour.

Set the gravity in the create event, and in the step event have the line:

Code: [Select]
with(objPlayer)
  other.gravity_direction=point_direction(other.x,other.y,x,y);

So that the acceleration of your object is always pointing towards the player.
If you don't want said object to get too far away from the player I suggest also putting a cap on its speed.

This worked surprisingly well! Thanks!  :atkHappy:

2
Programming Questions / AI Question
« on: December 18, 2016, 02:21:09 PM »
Okay, before i begin, i wanna say that i understand a fair amount of programming, when it comes to game maker: studio, with around 332 hours in the program, but I have no idea how i would get this to work.

Basically, i want to make an object that moves towards the player, but instead of instantly changing it's direction to always move towards the player, i want the object to overshoot if the player dodges, and turn around to try again, like sonic from IWBTB, or this example i found:


As I said, I have no idea where to start with something like this, so any help will be appreciated.

3
In "I Dun Wanna Be Anything 2" whenever you move from one area to a different area, the area's name is displayed on screen in a nice effect (like this):


how would i recreate this effect and get it to activate when moving from one room to another (but not when dying) ??

(Note: I am using the Gm:S version of the KS engine
 :BloodTrail:

Pages: [1]