Hello, thanks for visiting GameML, if you are a Game Maker user, this is the site for you, please sign up, or login if you are already a member, or just browse the site! Welcome to GameML!

ATTENTION MEMBERS!!! USERS CAN NOW SIGN UP AGAIN!
Log in

I forgot my password

Search
 
 

Display results as :
 


Rechercher Advanced Search

Site Hits
Free hit counter
These stats started at 0 on July 7th 2009
GameML File Sharing
USERNAME: gamemladmin@gmail.com PASSWORD: gamemlsite Upload Here: http://gameml.iowoi.org/GameML-File-Sharing-h3.htmPlease add only games.
Create A GAMEML BLOG!
Make a Blog on GameML:http://gamemlblogs.wetpaint.com

Moving with a character.*SOLVED, wow why didn't I think of the solution?*

View previous topic View next topic Go down

Moving with a character.*SOLVED, wow why didn't I think of the solution?*

Post by -js1210- on Wed Jun 24, 2009 2:33 pm

Lets say I want a box to stay over a character in a 2d platform game. It would have to stay over the person in the same relative position even when the character was moving. How do you do it?


Last edited by -js1210- on Sat Aug 22, 2009 7:03 pm; edited 2 times in total
avatar
-js1210-
Super 500 GML
Super 500 GML

Posts : 1298
Points : 31522
GameML Reputation : 27
Join date : 2009-06-02
Age : 22
Location : United States

View user profile http://www.yoyogames.com/members/js1210

Back to top Go down

Re: Moving with a character.*SOLVED, wow why didn't I think of the solution?*

Post by 3d on Wed Jun 24, 2009 2:39 pm

to ways to do it. i know one works the first, dont know if second does.

1)jump to position player.x, player.y, then adjust the origin of the box sprite to way below the box sprite.

2) do this for the box sprite under step- jump to position player.x, player.y+-6

_________________
Creator of GameML, Thanks for Visiting!
avatar
3d
Admin
Admin

Posts : 1227
Points : 41156
GameML Reputation : 66
Join date : 2009-05-31
Age : 34
Location : U.S.A

View user profile http://gameml.iowoi.org

Back to top Go down

Re: Moving with a character.*SOLVED, wow why didn't I think of the solution?*

Post by The Dark Ninja on Thu Aug 20, 2009 12:03 pm

good advice 3d
avatar
The Dark Ninja
Super 500 GML
Super 500 GML

Posts : 1495
Points : 31934
GameML Reputation : 7
Join date : 2009-06-16
Location : Earth

View user profile http://www.thedakninja.tastyhamgames.com

Back to top Go down

Re: Moving with a character.*SOLVED, wow why didn't I think of the solution?*

Post by Sponsored content


Sponsored content


Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum