# demon

Member Since 27 May 2007
Offline Last Active Mar 10 2013 04:32 AM

### Rotating The World Around The Center Of The Room

28 February 2013 - 04:12 AM

Hi guys,

I'm trying to rotate a planet around the center of the room and I'm sure this is a much easier calculation than I am thinking it will be.
Pressing the Up key will move the object in the opposite direction the player is facing, like this:

Pressing the Left and Right keys will change the direction of the player and rotate the object around the player like this:

I want to figure out the calculations for the X and Y variables for the object.
I was thinking like this:

x = room_width/2 - (obj_player.x-xstart);
y = room_height/2 - (obj_player.y-ystart);

However that works for the X and Y but not the rotation factor.
Any ideas? Thanks

### Add rotation to a sprite then scaling?

25 April 2012 - 07:23 PM

How would you go about rotating a sprite and THEN changing the scale with gml drawing functions?

Heres an example(This is done by scaling the room which is not what I want to do):

### Draw Variable

14 September 2009 - 03:59 AM

In my game I have the variables: text0, text1, text2, etc. defined as different characters statements in the create event of an object.

I am trying to figure out how to use the code: draw_text(x,y,String) only once and have String be something like this:
string(text + number)

I want it so that every time the player presses ENTER, the number increases, like from text0 to text1 and so on.

How would I code that?

### Coordinate From A Contact Point?

17 July 2009 - 07:56 PM

Is there a function that returns a coordinate at a contact point against a solid?  Or do I have to create a new object that moves_contact_solid and use its coordinate?

### The Emotivepoc

03 November 2008 - 05:27 AM

The EmotivEPOC is the latest piece of groundbreaking technology.  It's this alien looking headset and apparently it interprets your conscious brain waves as controls for games.  Basically like moving PAC MAN with your mind.

Based on the latest developments in neuro-technology, Emotiv has developed a new personal interface for human computer interaction.

The Emotiv EPOC uses a set of sensors to tune into electric signals naturally produced by the brain to detect player thoughts, feelings and expression and connects wirelessly to most PCs.

The Emotiv neuroheadset now makes it possible for games to be controlled and influenced by the player's mind.