Results 1 to 10 of 10
Thread: Need sug. For my RPG game.
-
April 17th, 2007, 02:51 PM #1
Need sug. For my RPG game.
Hi, im making an "pixel"-game, in flash ofc
.
The Graphics are pixel-looking, kind of Zelda on SNES feeling.
But i have some questions.
Which is the best way to make the ground follow the character?
Should ground which is out-of-site not be loaded, and get loaded as the char gets closer?
Should Different places, houses, dungeons, fields, be in different frames or scenes or get loaded whit AS?
Maximum recommended number of movieclips loaded at the same time?
Any good tips for hitTest with walls, stones, etc?
Any other tip is very appriciated.
Thanks!
/MacsyEverybody has been a newbie
-
April 18th, 2007, 01:41 AM #2
1/ i would make the ground move and leave the char' in the center, but there is no real best way it's all about what you like.
2/ yes. On a large map this can save your CPU's life
3/ I would lode them with AS. With all the other code you need using frames or scenes will just make it harder
4/ it's is totally dependent on whether they have code attached or how complicated they are, in it self it's a meaningless number, unless you where thinking of loading pixels individually (don't do that)
5/ tiles, using tiles can make things so much simpler, if you tell a tile there is some thing over it when you move it there all you need to do is ask the tile if there is anything to test for saving a lot of computationsGirr
-
April 18th, 2007, 04:32 AM #3
Thanks for you help... But, i dont know if i should position the tiles with as or with making them in large MC witch is loaded with AS.... do you understanD?
Everybody has been a newbie
-
April 18th, 2007, 05:03 AM #4
i don't really understand, but i'll try anyway. you will need to add the tiles with AS or is no longer useful.
This is one of the most used/recommended tile tutorial. Have a look I might help you
http://www.tonypa.pri.ee/tbw/start.htmlGirr
-
April 18th, 2007, 07:57 AM #56,170iAm t3h hybrid
postsfor hitTesting, i go tilebased

best way, the character is fixed on the center and only the map moves
max loaded depends on cpu
never use scenes. NEVER
-
April 18th, 2007, 08:29 AM #6
I was thinking of doing the same thing (making the map move instead of char), but i thought of this way of doing it.
Splitting the map up into seperate MovieClips ( the size of my document )
then using action script to determine when to load sertain movieClips of the map, using the attachMovie(); function.
and when the actionscript detects that its off of the screen(document) use removeMovieClip(); function
ps. i havent tried this out yet but i reacon it would work if you code it right

-
April 18th, 2007, 09:17 AM #7
the game is not tile based, you point with mouse and click on the location witch its suppose to go. Which make the hitTest and how to determin if the MC is in or outside the screenset.
Everybody has been a newbie
-
April 18th, 2007, 09:31 AM #8
I have been writing a tile-based game and one of the problems I had was how to effectively load up external tile gifs. I found that, using flash's bitmapData class, I was able to load my external tiles into separate movieclips, draw them into a bitmapData array, then delete the holder movieclips. This allows me to then use the .attachBitmap function which allows the game to only have to load tiles once, then access them until the game is closed or the array is deleted.
If enough people are interested, I can set up a custom class and post it.
-
April 18th, 2007, 09:38 AM #9
im not understanding what your saying there but do you mean this?
is that what you were meaning?Code:for(i; i<MovieClipTotal; i++){ MovieC = _root.["movieclipname"+i]; MovieC.onPress = function() { *Code goes here* } }
-
April 18th, 2007, 09:46 AM #10

Reply With Quote



Bookmarks