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!

Join the forum, it's quick and easy

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!
Would you like to react to this message? Create an account in a few clicks or log in to continue.
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: https://gameml.forumotion.com/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?*

3 posters

Go down

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

Post by -js1210- 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
-js1210-
-js1210-
Super 500 GML
Super 500 GML

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

http://www.yoyogames.com/members/js1210

Back to top Go down

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

Post by 3d 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
3d
3d
Admin
Admin

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

https://gameml.forumotion.com

Back to top Go down

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

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

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

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

http://www.thedakninja.tastyhamgames.com

Back to top Go down

Moving with a character.*SOLVED, wow why didn't I think of the solution?* Empty 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

Back to top

- Similar topics

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