|
|
|||||
Topic, Game "Xanward Urthadar" | ||||||
| ||||||
You must register or log in to post a message.I do electro music and chiptunes best, but I can do other styles as well! I love drawing games! I don't think it will be finished 2008... I want it to look as good as the other games before making it public. 1) Moving items (hero + moving blocks) vS static items 2) Moving vS Moving You can still use the hittest method for 1) but in this case you have to display yuor moving items in a nother movieclip than _root.terrain. Your method is working but it's not optimal, it would have been better to use the tonypa method here : http://www.tonypa.pri.ee/tbw/tut05.html For 2), you need to make a square vs square collision between all moving items. I guess it's the best method. You have to know which items collide to be able to move the blocks so you can't use a hittest on _root.terrain which doesn't give this info. Square quare collision is easy, here is an example of algorithm (not in flash) : http://groups.google.com/group/jquery-dev/browse_thread/thread/20316b25f7a4147a?pli=1 if ((!_root.terrain.hitTest(this._x, this._y + this._height/2, true)) && (!_root.terrain.hitTest(this._x - this._width/2, this._y + this._height/2, true)) && (!_root.terrain.hitTest(this._x + this._width/2, this._y + this._height/2, true)) && (!_root.line.hitTest(this._x, this._y + this._height/2, true)) && (!_root.line.hitTest(this._x - this._width/2, this._y + this._height/2, true)) && (!_root.line.hitTest(this._x + this._width/2, this._y + this._height/2, true)) or (yspeed<0)) { //something } And i actually need to check collision with a lot more movieclips. About the categories, once you'e created them in the game submission form page, it's very touchy to modify them. Each category is a number starting from 0. You can edit their name, you can add a new one AFTER the already existing categoies, but as soon as you want to remove one category or change the order, it will be a big mess in the levels. I need to make a category edition form. You can complete it now! I had to re-upload every level, but it works now. I'm currently detecting collision with only one point of the character for each site: http://i460.photobucket.com/albums/qq322/THe_NiNJa_photos/draw_collision_dettection.jpg I am currently only detecting collision with the yellow points, and i should add the green points. And maybe even 8 points between the green and yellow. Thanks for the feedback. I'm still working on the very basics of the game, so maybe it's a little too early. About the thumbnails with the black lines: Yes, i need to add the "if (BLManager.cursorOverBLGUI() == false)", because you also lose ink when you click the BLAPI buttons. I am also going to implement a pause function. Undefined appears because the levels were made (Still with the editor example you've made :/ ) before i implemented ink. These leveldata needs an additional variable. About the black counter, i'm not sure how i'm going to do this. I could put it in a layer above the drawings, but black is a bad colour to put in front of the mines/drawings. You can't complete Tuto - Bombs? Strange :/ And no, it's not intended that can move when only the head touches the ceil. This is just because i kinda suck at flash.. Also, i will probably make this game an infinity scroller, like RT, Hog Pop and Jump Gear 2, but i want to make a succesful editor first. I have a few remarks. First, the gameplay is very interesting, so this is worth going on. About the thumbnails that are all featuring a black line. You can avoid this by adding a condition before activating the line drawing in the game engine : onMouseDown = function () { if (BLManager.cursorOverBLGUI() == false) { //start the drawings } } On some levels the the black counter is "undefined" and you can't draw (The star, Tuto several goals). The black counter should be put in a layer above the drawings. On Tuto Bombs, when I arrive on the goal, the level is not completed and the hero disappear. Is it intended that you can move when only the head touch the ceil ? [edit] The collision detection is not yet perfect on corners. Not sure if it's a big problem, but you can enter the blocks a little depending no which direction you arrive from. In some situations, yuo have to use the left hand for the keyboard while drawings lines with tle mouse (right hand). So I suggest that the up arrow key is used to jump instead of or in addition to the spacebar. cool same, name and game rime. [edit, THeNiNJa]: There are more levels, but the level "Draw" is the only commented one. I am still working on the game, and there's alot to do.. Would you like me to send you a description of the game by Private Message ? I can't wait! For my game, I am always experimenting, and when it will look something, I tell you ;) I say only that he is called "Walking Balls" and that it will not control the characters :p I will tell you when this game is ready to be tested. | Games forumPlay Game "Xanward Urthadar"First post of the topic |
its up to you