TrulaBanana Posted September 8, 2013 Share Posted September 8, 2013 How to create ground (map of the game) with all objects on it?Should I create big image, butt then how to place objects on it(what is object x ,y position then)? (Sry for my engl) Quote Link to comment Share on other sites More sharing options...
Yora Posted September 8, 2013 Share Posted September 8, 2013 Instead of using a big image for your map, you should make use of tilemaps. They use small pieces put together to create a map. If you notice in FF games, these small reusable tiles are what make up the maps. objects are placed relevant to the game screen x,y and not to your map, so an object you place at 0,0 will be in the top left corner. Quote Link to comment Share on other sites More sharing options...
TrulaBanana Posted September 8, 2013 Author Share Posted September 8, 2013 But if i place obj on -100,-100 i will never see it? Quote Link to comment Share on other sites More sharing options...
Qqwy Posted September 8, 2013 Share Posted September 8, 2013 But if i place obj on -100,-100 i will never see it?Most games, especially RPG games like Final Fantasy, include a camera system that follows the player, which basically means: When the player moves, you move all objects except the player in the opposite direction and keep the player in the middle of the screen.At some point you will then be able to see an object placed outside of the screen. TrulaBanana 1 Quote Link to comment Share on other sites More sharing options...
TrulaBanana Posted September 14, 2013 Author Share Posted September 14, 2013 How to animate sprite with different speed than ground?I animate ground whit 30 fps and for sprite this is to fast (it change picture to fast). Quote Link to comment Share on other sites More sharing options...
Yora Posted September 17, 2013 Share Posted September 17, 2013 What framework or program are you trying to make your game in? Generally to change the speed of a sprite, you would want it to move fewer x or y per game update. function someUpdateFunction() {this.x -= 1;this.y -= 1;}//Slowerthis.x -= .5;this.y -= .5; Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.