Jump to content


Venomous

Member Since 29 Jul 2009
Offline Last Active Today, 03:29 AM

Posts I've Made

In Topic: Does 3D Games Work On Html5

Yesterday, 01:13 PM

 Not available yet, but it is coming eventually via WebGL according to the roadmap.


In Topic: Html5 For A Portfolio Website (Not A Game)

15 May 2013 - 08:53 PM

 HTML5 is only compatible with modern browsers (IE 9 or newer). It also doesn't go well with search engines (google), because your website is almost entirely inside javascript. An alternative is to make various parts of the website with HTML5 that can be loaded and displayed wherever you want.


In Topic: How To Make A Turret Aim At You

13 May 2013 - 02:16 AM

 

It rotates around the sprites origin

ok so how should i do this? i tried centering it and it still doesnt work

 

30vc1sj.png

 

 

The sprite should be facing right, and the origin should be at the spot you want it to rotate around.


In Topic: Simple 3D Issue I Need A Little Help With

12 May 2013 - 01:01 AM

 From the error message, it looks like you haven't defined the variable tFOV. Initialize it in the create event or something.


In Topic: Game Maker Studio Physics

10 May 2013 - 10:21 PM

 This type of question belongs in the Questions and Answers forum.

As for your question, physics_apply_force() may be what you're looking for. However that only affects a point in the room, so you may need to loop through all physics objects and apply a force base on distance.

with(obj){
     var dir = point_direction(x, y, other.x, other.y);
     var dist = point_distance(x, y, other.x, other.y);
     if(dist < 100){//change 100 to the radius of effect that you want
         physics_apply_local_force(x, y, lengthdir_x(dir, 5), lengthdir_y(dir, 5));
     }
}

 

Note: the code is untested.