A Flash Developer Resource Site

Results 1 to 12 of 12

Thread: Me Again?!?!?

  1. #1
    Cats Moo!
    Join Date
    May 2000
    Location
    Boonies
    Posts
    148

    Smile

    Hey,
    Me Agian.....

    Well, this time I decided how to put my shooting game know-how it to work...

    I'm making a paintball game All I need to know is a few things about it....

    How do I make a bullet start at me and end up at the coordnates of the scope? I know how to click and make the paint just apper where the aimer is/was... Well, is it at least possable to have it start at one movie and end up at the coordnate of the center of an other movie?

    How do I get my game to have a log-in name and password?
    If it requires perl/cgi or any other stuff like that i can't do it... I dont think...

    Does Random(16)+1
    Mean 1-16 or 1-17...?

    I suck at art work so is any one willing to take the .fla files i got from me and fix up the images?

    How can you make a little flash chat program?

    How do i put my flash banner as my signature?

    HELP ME PLEASE!!!!
    Thanks in Advance

  2. #2
    Senior Member
    Join Date
    Jun 2000
    Posts
    435
    Dam yours got a lot of questions?
    I’m not rely understanding your 1st question, you want to know haw to animate an object with action script?

    Passwords are easy in flash you just make a text field the user can type in and a button that run an “if statement” like if (login eq password) then let them in!

    A flash chat room would require some server back end work, and I am not so good at that.

    Acutely I don’t know haw to poot a flash object in my signature? I think I will go and find out!

    Good luck and have fun! Meow!

  3. #3
    Cats Moo!
    Join Date
    May 2000
    Location
    Boonies
    Posts
    148

    Lightbulb Here Kitty

    The 1st question was asking to see if you could shoot a paintball and have it start at you then it goes to where the target was..... Is It possable?

    The password question.....
    I know how to make a password textfeild and all that.... But I want to make it so the person can come it sign up and then have there own password & user name... or they can play as a guest....

    The Chat Server Question....
    I don't know any thing about that stuff.... I also want to make the game multiplayer.... But I'm going to start with it being 1 player.....

    The Flash Banner Question....
    Thanks for Trying to Figure out how....

    Thank You
    Hope this Post Clears Up What I Was Talking about...

  4. #4
    Senior Member Mad-Sci's Avatar
    Join Date
    Mar 2000
    Posts
    2,756
    1. Password. dont store the passwords in Flash. There is a decompiler out there and the swf in my cache .
    2. MultyPlyere and FlashChat
    http://www.kessels.com/FlashDB/
    3. About the first question I dont now yet. Ill try to figure it out.
    Mad_sci


  5. #5
    Senior Member
    Join Date
    Jun 2000
    Posts
    435
    Just a little time left… o I got to go soon but I will give you a more in depth response this evening. K

    Go to: http://www.moock.org/webdesign/flash/index.html he has some riley good tutorials on animating with action script, and take a good look at the tutorials on collision detection, you will need to know this stuff!

    Purrr

  6. #6
    Senior Member
    Join Date
    Jun 2000
    Posts
    435
    Well I am not having much luck, whit figuring out what it tacks to put a flash banner in to your signature! Sorry I could not figure it out, but maybe some one else knows the secrets of this board?

  7. #7
    Senior citizen
    Join Date
    Jul 2000
    Location
    Denmark
    Posts
    94

    Signature

    Hi ChriSell,

    Regarding the signature, try this:
    [Posted in another thread by Akane]

    put the swf on your personnal server, or anywhere on the web

    just add this code :
    [*swf width="220" height="40" background="#FFDDBB"]http://flashkit.com/graphics/banners/footer.swf[/swf*]

    remove the "*", and change the adress the file name and the attributes !

    I haven't tried it myself, give it a go!

  8. #8
    Senior Moderator
    Join Date
    Apr 2000
    Location
    Sheffield, UK
    Posts
    3,881
    The password question.....
    Well you will need a cgi,asp or php3 scirp that will write the users usernames and passwords to a text file so that theyu can use it again.

    The Chat Server Question....
    To make the game muliplayer or use chat you will need another cgi,asp,php3 script for the backend!!!

    So you will be able to find these script at http://www.hotscripts.com if not i have the php3 versions and fla's for chat and write to a text file!!!(Remember you will need php3 enabled webspace!!)Hope that helps!!

    Regards FlashGuru!!

    p.s i will answer the first question in my next post!!!

  9. #9
    Cats Moo!
    Join Date
    May 2000
    Location
    Boonies
    Posts
    148
    I already had my banner working....
    :Þ Thanks for the help Though

  10. #10
    Senior Moderator
    Join Date
    Apr 2000
    Location
    Sheffield, UK
    Posts
    3,881
    Right create a movieclip and name it: "mouse"
    (this will be your target movielcip)

    then on the first frame of your main timeline put:

    Start Drag ("/mouse", L=10, T=10, R=390, B=390, lockcenter)
    Stop


    next create the movieclip for your paintball:
    Call this "player"


    then Inside the movielcip called mouse put a frame and inside create the graphic for your target,now you have the target graphic turn it into a button,ont he button actions put:

    On (Release)
    Set Variable: "/player:x" = GetProperty ("",_x )
    Set Variable: "/player:y" = GetProperty ("",_y )
    Begin Tell Target ("/player")
    Go to and Play (5)
    End Tell Target
    End On


    next for the movielcip called player.
    Inside this movielcip on the first frame put:

    stop


    Next frame put:

    Set Variable: "x" = Int(GetProperty ( "/mouse" , _x))
    Set Variable: "y" = Int(GetProperty ( "/mouse" , _y))
    Set Variable: "distx" = x - GetProperty ("", _x)
    Set Variable: "disty" = GetProperty ( "" , _y) - y
    Set Variable: "input" = distx*distx+disty*disty
    Call ("sqrt")
    Set Variable: "distance" = output/speed
    Set Variable: "movex" = distx/distance
    Set Variable: "movey" = disty/distance


    the frame after that put:

    If (distance <= 0)
    Go to and stop (1)
    Else
    Set Variable: "newx" = GetProperty ("" , _x) + movex
    Set Variable: "newy" = GetProperty ("", _y) - movey
    Set Property ("", X Position) = newx
    Set Property ("", Y Position) = newy
    Set Variable: "distance" = distance - 1
    End If


    and on the frame after that put:

    Call ("3")
    Go to and Play (3)

    Now label the next frame: "sqrt" and for the actions put:

    Set Variable: "z" = 1
    Set Variable: "iterations" = 20
    Set Variable: "i" = 0
    Loop While (i<iterations)
    Set Variable: "z" = z - ((z*z - input) / (2*z))
    Set Variable: "i" = i+1
    End Loop
    Set Variable: "output" = z

    this will tell the target movielcip to move to the place where the user clicks his mouse!!!
    Hope that helps!!Regards FlashGuru

    p.s if you can get it to work then just ask me for the .fla file!!

    [Edited by FlashGuru on 07-14-2000 at 07:34 PM]

  11. #11
    Senior Member
    Join Date
    Jun 2000
    Posts
    435
    Storm, you Rock! You would not believe how stooped I feel, after seeing your post. I was just a little off but know I have got it thanks! I am your friend now!

  12. #12
    Senior citizen
    Join Date
    Jul 2000
    Location
    Denmark
    Posts
    94
    No problemo FlashCat. Nice footer by the way..

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center