I'm attempting to create my first game. I have been following a few tutorials, and all seemed to copy a lot from:
http://oos.moxiecode.com/tut_01/index.html
The tutorial itself is great, however when I tried to follow it my code wasn't working. I noticed in my actionscript that a few commands where highlighted yellow, and the tooltip said I needed to 'export in flash 6 to use the this...
I don't exactly know what the problem is, but you shouldn't follow those, rather try tonypa's tutorials which are the best ones, and he has both as2 and as3 versions(you should try and learn as3 if you wanna make real games)
http://www.tonypa.pri.ee
And why not ? Should everyone read a tutorial and then re-code it themselves in their own style, otherwise they're not learning ?
Those tuts are how I learnt tile based worlds in actionscript, and I just pasted that code in first time around.
louis this isn't deprecated, looking at that code quickly, everything should be fine ( Are your settings for as1 ? You can still publish for ...
Quote:
Originally Posted by bluemagica
I don't exactly know what the problem is, but you shouldn't follow those, rather try tonypa's tutorials which are the best ones, and he has both as2 and as3 versions(you should try and learn as3 if you wanna make real games)
http://www.tonypa.pri.ee
I started going through...
Using _root is not a bad coding habbit. What they are reffering to is adding onEnterFrames to the movie clip instead of having all the code on the main timeline. And when you have all of the code on the timeline, you are not going to have to use "_root" as much as you do. "_root" just means the stage -
so if a movie clip is on the "_root" level, it just means it is at stage, not nested in ...
Quote:
Originally Posted by pseudobot
Using _root is not a bad coding habbit. What they are reffering to is adding onEnterFrames to the movie clip instead of having all the code on the main timeline. And when you have all of the code on the timeline, you are not going to have to use "_root" as much as you do. "_root" just means the ...
Quote:
Originally Posted by pseudobot
Using _root is not a bad coding habbit. What they are reffering to is adding onEnterFrames to the movie clip instead of having all the code on the main timeline. And when you have all of the code on the timeline, you are not going to have to use "_root" as much as you do. "_root" just means the ...
Quote:
Originally Posted by tonypa
My AS3 version uses tilesheets instead of movie clips:
http://tbg.tonypa.pri.ee/index.html
Ah, I hadn't seen these tutorials yet! Guess I was looking at the ones for flash 5. Either way they are great I'll look them over! Thanks
Quote: Originally Posted by Incrue And what if the tile is not suposed to show just a static image, i mean,if its fire or water, isnt best the old way, with MovieClips? Not sure if this is what you want, but there's some info on tonypa's tutorials about animated sprites http://tbg.tonypa.pri.ee/tut07.html
Quote: Originally Posted by tonypa My AS3 version uses tilesheets instead of movie clips: http://tbg.tonypa.pri.ee/index.html And what if the tile is not suposed to show just a static image, i mean,if its fire or water, isnt best the old way, with MovieClips?
I don't exactly know what the problem is, but you shouldn't follow those, rather try tonypa's tutorials which are the best ones, and he has both as2 and as3 versions(you should try and learn as3 if you wanna make real games) http://www.tonypa.pri.ee
Oh my gosh! You've always been using oop with Actionscript 2.0 already!!! Whenever you start working with properties of movieclips, bitmapData's, all that, IS OOP. Now what part do you not understand: "AS3.0 is a lot faster, because you make your own classes, which are not as bloated as built-in AS2.0 classes!!!" It seems as though you don't read posts properly...just sort of skim over them.
Right, let's go offtopic and be real anal as to what the sentence "as3 is all about performance" means when taken out of context, instead of listening to the point that render made with it, even AFTER he made it explicit. Jeez.
And why not ? Should everyone read a tutorial and then re-code it themselves in their own style, otherwise they're not learning ? Those tuts are how I learnt tile based worlds in actionscript, and I just pasted that code in first time around. louis this isn't deprecated, looking at that code quickly, everything should be fine ( Are your settings for as1 ? You can still publish for Flash9 even with as1. Having it set to as2 may throw...
Using _root is not a bad coding habbit. What they are reffering to is adding onEnterFrames to the movie clip instead of having all the code on the main timeline. And when you have all of the code on the timeline, you are not going to have to use "_root" as much as you do. "_root" just means the stage - so if a movie clip is on the "_root" level, it just means it is at stage, not nested in...
Hey tonypa, your tutorials look fantastic, but the links seem to be broken starting with the "stupid enemy" tutorial. I want to know about the stupid enemy!
Thread profile page for "Tile Based Game" on http://www.flashkit.com.
This report page is a snippet summary view from a single thread "Tile Based Game", located on the Message Board at http://www.flashkit.com.
This thread profile page shows the thread statistics for: Total Authors, Total Thread Posts, and Thread Activity