Jump to content


Photo

*Solved* Moving Ship Code, PLZZ HELP


  • Please log in to reply
4 replies to this topic

#1 linkis20

linkis20

    GMC Member

  • New Member
  • 15 posts

Posted 13 April 2011 - 12:15 PM

Edit 2:
*Solved*

I'm making a remake of Clash N Slash Worlds Away.
But how can the ship stay by the base,
So that the player cant fly free.

I need to make something like this:


How can i make that fly effect in Game Maker?
That you can only fly around the Planet.

I got Game Maker 8 Pro.
Plzz Help.
NVG.
EDIT1
Like there is a rope attach to it.

Edited by linkis20, 14 April 2011 - 09:40 AM.

  • 0

#2 ellisvlad

ellisvlad

    GMC Member

  • GMC Member
  • 249 posts
  • Version:GM8.1

Posted 13 April 2011 - 03:05 PM

try this in the step event:
length=min(64,point_direction(xstart,ystart,mouse_x,mouse_y))
direction=point_direction(xstart,yxstart,mouse_x,mouse_y)
x=xstart+lengthdir_x(length,direction)
y=ystart+lengthdir_y(length,direction)
that will keep the object rotating around the start point with the mouse.

-vlad

Edited by ellisvlad, 13 April 2011 - 03:06 PM.

  • 0

#3 linkis20

linkis20

    GMC Member

  • New Member
  • 15 posts

Posted 13 April 2011 - 04:13 PM

Look for yourself what happed.
Here is the Link
NVG.
Edit:
Its not free as the original.
Need to think of something else.

Edited by linkis20, 14 April 2011 - 09:40 AM.

  • 0

#4 linkis20

linkis20

    GMC Member

  • New Member
  • 15 posts

Posted 14 April 2011 - 09:24 AM

I got it.
Tx to you.
Here is the Code:
Spoiler


Your code helped a lot.
TX.
NVG.

Edited by linkis20, 14 April 2011 - 09:28 AM.

  • 0

#5 ellisvlad

ellisvlad

    GMC Member

  • GMC Member
  • 249 posts
  • Version:GM8.1

Posted 14 April 2011 - 01:49 PM

Your welcome!
-Vlad

I got it.
Tx to you.
Here is the Code:

Spoiler


Your code helped a lot.
TX.
NVG.


  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users