Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: Newbie here in need of help

  1. #1
    Join Date
    Sep 2006
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Newbie here in need of help

    So I have wanted to learn how to code this stuff for as long as I have learned HTML. But for the longest time, JS has eleuded me. I have decided that I want to learn how to code some basica javascript. I have one script in mind that I would like to tackle. I would appreciate any help people could give me.

    I have here a site that has a flash game. What I want to do is right after the picture of the monkey is gone, there is a cube with "BM" on it. When you move the mouse, pixels trail and fall down, then when you click, it explodes pixels. I want to do this for my web page for a background (wherever I go on the page it will do this). But it is not possible to my knowledge to embed a flash animation as a background and I beleive it to be possible to do this with javascript.

    http://209.0.146.17/1/graphics/games..._challenge.swf

    I am going to try and splice things together from other script examples if I can find them, but I would really like some help to try and learn how to do this from scratch.

    Thanks for any help.

  2. #2
    Join Date
    Sep 2006
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    So I was thinking that I should do something like having it choose a random number between 0 - 360 For "launch" direction. Then choose a random number between 1 - 10 for speed for each pixel. Then have the activation be when the mouse moves one pixel in any direction. Then each pixel would "accelerate" by subtracting say one number the y coordinate of the pixel every couple miliseconds. What do you guys think of that? I don't know how I would do this, but I think that would make the pixels do what I want them to do if I can get the script to work....

    keep in mind, I just want to work on the trail pixels. Hopefully once I have that good enough, I will know enough to make the click work flawlessly.

  3. #3
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    That's not a javascript. It's Flash.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  4. #4
    Join Date
    Sep 2006
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    If you read my post, you will see that I already stated this. I said this is a flash animation, but I can't embed a flash app into the page, so I want to do this with javascript......

  5. #5
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Quote Originally Posted by blzrd
    So I have wanted to learn how to code this stuff for as long as I have learned HTML. But for the longest time, JS has eleuded me. I have decided that I want to learn how to code some basica javascript. I have one script in mind that I would like to tackle. I would appreciate any help people could give me.
    Quote Originally Posted by myself
    That's not a javascript. It's Flash.
    Quote Originally Posted by blzrd
    If you read my post, you will see that I already stated this. I said this is a flash animation, but I can't embed a flash app into the page, so I want to do this with javascript
    Sorry about that. But, that being the case, you would be much better off starting with something less challenging. I'm pretty advanced at javascript and I would find doing that swf as javascript pretty hard.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  6. #6
    Join Date
    Sep 2006
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Well that is why I wanted to tackle this one. Because it would be hard. It would take a while, and by the time I am done with it, I would pretty much be an advanced javascript user.

    I have looked for web sites that teach you how to do things, but they don't go into anything too advanced. They basically just tell you how to do math with the javascript which is easy enough. I want to learn how to use that math to manipulate objets.

    Would you like to help me?

  7. #7
    Join Date
    Dec 2004
    Location
    UK
    Posts
    2,358
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by blzrd
    Well that is why I wanted to tackle this one. Because it would be hard. It would take a while, and by the time I am done with it, I would pretty much be an advanced javascript user.
    I really don't think it's that simple. A single project doesn't teach you about the language. You'll only be using a restricted subset of it, and interacting with limited number of host objects. To become really proficient, it takes time. A lot of time - one person who I would call an expert put an estimate at six months, if not longer.

    The more practical issue is that animation in browsers tends to come off really quite badly, with a lot of tearing and stuttering. It's just the wrong tool for the job.

    Mike

  8. #8
    Join Date
    Sep 2006
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    K then where would I go to learn how to do javascript?

  9. #9
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    I think it would be more a test of your maths skills than a Javascript challenge.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  10. #10
    Join Date
    Sep 2006
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    YES YES I know it would test my math skills. But I am decent at math. I just want to learn how to apply my math skills to a real world thing. Javascript is a perfect way to do that, correct?

Bookmarks

Posting Permissions

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