check my under development platform game.

  • Thread starter Thread starter test84
  • Start date Start date
  • Views Views 13,285
  • Replies Replies 111
You're using actionscript 2 right? So, let's see what I can do..

1) just create a MovieClip with your textbox and add it to stage:

Code:
_root.attachMovie("textBox", "myTextBox", 1000); //textBox would be the linkage name of the MovieClip
_root.myTextBox.text = "Whatever the text you want to appear"; //being text the variable on the textbox inside the MovieClip

2) I used his tutorials once.. but I don't remember how his code was organized.. anyway, flash debug mode is not very good..
sleep.gif


3) It's weird.. but you can't!
wacko.gif

Flash don't give you warnings.. you can define whatever you want at any time and it don't care.. it's like Javascript.
ActionScript 3 changed it thought.. you need to define every variable you have and it gives you warnings.. but that's another story..

4) Have I mentioned that flash debug mode is not good? I really don't know.. I usually just put a lot of traces on my code when I have to debug it XP

5) If you're using the flash file on a website, you can resize it by just changing the "height" and "width" properties on the HTML.
If you want it to be dynamic, you could try using some Javascript.

6) See last answer.

7)I don't think you can
unsure.gif
. AFAIK it works only for the built-in classes.

Hope this helps you!
wink2.gif
 
thnk you man.
I just post quesitons/replies to my vital problems:

1)I'm really interested to find a way to stop flash from compiling incorrect code, do you know ANY way to stop it from using un-defined variables and functions?

2)I dont want to use it in a html page, I want to force flash to double size of exported movie, like when I manually resize the output window and right-click and zoom.

3)strong typing is possible in AC 2 too but my question was something else.

4)strange thing about that "this" was that I used his structure too (despite the changes I made) but mine doesnt have ANYTHING in front of "this" pointer.

5)now I want to increase size of my document/level, which way do you recommend? resizing the document file? whenever I do that, my whole games torns apart.

thank you again, you were the only one to answer my questions.

p.s. some updates to engine (http://gbatemp.net/index.php?showtopic=74620&view=getlastpost)

EDIT:
we just past 2000 views!
 
Nah.. flash is made to be easy, like javascript. It can't detect non declared variables and stuff like that (basically, every variable you use is automatically declared).

The size of your flash window is fixed.. when you resize it in HTML, the window is zoomed.. Anyway.. you could also try to create a MovieClip on _root and attach all your things to that clip instead of _root.. then when you modify the width and height of that clip, you'll get a "zoom" effect
wink2.gif


Try making some experiments.. see what is the best for you..
 
thnx cockroachman but that is not easy when its possible to call a funciton which is not declared ! I'm used to rely on my IDE to tell me these bugs and its near impossible for me to find them out.
 
new update of myMario

http://www.swfpages.com/view/126750.htm

changelog:
the DONE list:
-[09-33-B01]should jump once by pressing and not
keeping space key pressed. (needs Listeners)
-[09-33-B02]fix why it shows mario's jump frame when
dying and loading again. (mostly at presense of
enemies) (seems working fine)
-[09-33-B03]fix movement of type 1 enemy on cloud
blocks
-[09-33-B04]fix falling of enemy type 2 from clouds
-[09-33-B05]fix enemies that chase player and start
from falling into platform (BUG E1) (HELL YEAH!)
-[09-33-B06]fall after teleportation and new game
-[09-33-B07]proper starting position for each map
-[09-33-B08]enemies should walk instead of moving like
ghosts
-[09-33-B09]added ability for enemies to walk on
clouds and fixed my own bug! xD
-[09-33-B10fix ladders
a-grab upper bult-in ladders -[09-33-B10a]
c-dont let ot confuse with just landed mode when
messing with border of last step of
ladder-[09-33-B10c]
d-Should not fall out of screen when jumping
from right-most ladder.-[09-33-B10d]
f-Should show jump animation when jumping from
bottom of ladders (bug in where ob.climb = false
happens) (REMOVED JUMPING WHILE WITHIN
LADDERS)-[09-33-B10f]
b-Should not move when at the buttom of ladder.
(SEEMS TO BE WORKING, need throguh
testing)-[09-33-B10b]
e-Should not go through doors when door is on top
of the ladder. (needs Listeners) -[09-33-B10e]
-[09-33-B11]changed default 30x30 to 32x32. (may cause
bugs)
-[09-33-B12]fix doors and portals (now if game is just
loaded or you just died, it loades from a
check point (startingPositions) but if you go through
a door, it just loads that point
for once (using a flag called isChangingMaps)
-[09-33-B13]fix enemies that walk into air when
walking off clouds (BUG #E2)

TO DO: (TODO: priotorize list below)
-tweaking the jump and movement's so it should move
more smoothly.
-clean up code and remove unnecessary states.
-scrolling
-Double Jump and tripple jump
-why adding STOP() in first frame of my characters,
wont work

next version:
-add all or most of detectKey function into listeners.
-Drop down from clouds by hoding down Down arrow key
and pressing jump.
-fixing ladders again, not now, after a long time ...
(add something with Jump
while on ladders, maybe when pressing up, grab it or
so but beware that a bug will appear if
you dont press up, it will fall into blocks that have
built-in ladders)
(probably when you are climbing and you press space,
it falls down of ladder)
-

after next version:
-chaser enemies (should follow char and jump to
surfaces and stuff!)
-find a better way to deal with tile sets so be able
to add lots of tilesets without adding more objects.

after having scrolling:
-reading map files from files
-checkpoints (after having scrolling)
-add if gameover occured start from starting positions
if not, start from entrance door
-add lives and SOOKHTAN so player wastes one life and
the goes to entrance/check point again.
-add custom enemies
-sound fx
-music

far future:
-a level editor ... (first just reading map and
enemies arrays and character start points array
and then show stuff and use mouse to make
levels! wow)


MAYBE:
-
-

To Rewrite in future:
-
-
 
thnx raul.
you can actually see what stuff I have in my plan to add and you can comment on next or after that releases.

DId anyone came up with a bug or something?
 
test84 said:
thnx raul.
you can actually see what stuff I have in my plan to add and you can comment on next or after that releases.

DId anyone came up with a bug or something?
No bugs at all
smile.gif
Everything works.

Seeing forward to the next release
biggrin.gif
 
I have something to add to the wish list. Maybe have mario jump only as high as the user holds the space button. For example, a quick press would have mario jump up half a block, where, if the user holds space, then he jumps up the full amount.

Good job, otherwise.
 
raulpica said:
test84 said:
thnx raul.
you can actually see what stuff I have in my plan to add and you can comment on next or after that releases.

DId anyone came up with a bug or something?
No bugs at all
smile.gif
Everything works.

Seeing forward to the next release
biggrin.gif



lol. thnx guys, there are three bugs that I fixed today (thnx to PeaCe who found them), there are not likely to be seen but I wantead to fix them, i'll show it to you when it has other stuff.

QUOTE(- Wrath of God - @ Mar 3 2008, 06:11 PM)
I have something to add to the wish list. Maybe have mario jump only as high as the user holds the space button. For example, a quick press would have mario jump up half a block, where, if the user holds space, then he jumps up the full amount.

Good job, otherwise.

thnx, it is in my wish list.
 
stormwolf18 said:
its still really bad, even for a flash game...sorry

if you want to be helpful,
would you be more specific? whats the parts that you dont like about it? what would you like to change? tell me about since its hard for me to imagine what aspects of it is not on your standards.

Thanks.


p.s. good updates coming up!
 
Its been a while since I'm working on ladders and then I'm after an

example so I thought asking you guys that does anyone know a NES/GB/GENESIS platform game that has ladders and

character can jump from ladders? I want a platform game that characters preferrably uses ladders extensively. tnx
 
test84 said:
Its been a while since I'm working on ladders and then I'm after an

example so I thought asking you guys that does anyone know a NES/GB/GENESIS platform game that has ladders and

character can jump from ladders? I want a platform game that characters preferrably uses ladders extensively. tnx
A character that uses ladders extensively? Hm... this reminds me of Lode Runner. Never liked the game, but sure there were a lot of ladders in it
rofl2.gif
 
TheStump said:
why don't you create an original character/concept?

....
rolleyes.gif

thats possible but I wanted first have a source to see how other games work with jumping and ladders since I was really deep into jumping and ladders that I totally forgot about other games.

Its still nice to play a game with ladders and jumping to see circumstances that may cause problem with my game.

--------------

Update!

http://www.swfpages.com/view/113312.htm

Main additions:
-Jumping while on ladders
-Drop down from clouds
-resizing it to ~900x800

change log:
-(ADD) jumping while on ladders. (HELL YEAHHHHHHHH!!!11!1!shift!!1)
-(FIX) Showing jump frame while droping down.
-(FIX) another ladder bug where you could climb up into a non-walkable block
-(ADD) Drop down from clouds and ladders by hoding down Down arrow key and pressing jump. (ob.clip._y)
-(FIX) bug of random changes of dirx for type 2 enemies. (SEEMS TO BE GONE, hopefully)
-(FIX) when at bottom of ladder, if you just climb one step and press right, it falls down,
instead of going right and then fall.
-(FIX) mario wont walk left or right when he's inside a ladder
-(FIX) why adding STOP() in first frame of my characters, wont work. (seems to be a mistake!
tongue.gif
, its working)
-(FIX) work more on why having speed of more than 24 will cause problem.
-(FIX) while falling from jump into portal, it will come out of it as falling state.
-now mario jump's height is as long as you keep pressing space key.
-dar hale paresh (bala raftan) vaghti bala ro bezani va balaye nardeboon hayi ke roo hava
hastan bashi, yekam balatar vaimisteh.
-to halat e ghabl vaghti rast ro bezani mireh to halat e Jump va mimoneh
-moghe payin omadan az nardeboon hayi ke ro hava hastan, ageh rast ro bezani, mireh ro hava
-found a way to scale the stage, but donno if this is better or resizing the tiles.
-when jumping up and going through a door, after gettin in, it will show rest of jumping
sequence.
 
Ok,
(I still dont feel like to continue this project since strangely I hate platform games ..., even mario)
I'm trying to set a goal step so I can trim down all these features that I'm gonna add to the game.

So I'm open to all your ideas and features you would like to see added to the game, you can always see first post of this topic for further info about progress that has been made and TODO list.s
 
Well, I guess it's cool to be making a game yourself, and it's an achievement even to make something as small and simple as this. Though I'll be honest, you couldn't really make the game better unless you started from scratch with something different. Which of course you don't want to do.
Don't want to be harsh, so I'm sorry for the evil criticism lol.
 

Site & Scene News

Popular threads in this forum