dcsimg
A Flash Developer Resource Site

Search:

Type: Posts; User: kevinbath

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    3
    Views
    2,716

    Oooh. 2 links deep found this pseudo code. Nice!...

    Oooh. 2 links deep found this pseudo code. Nice!

    http://www.grc.nasa.gov/WWW/winddocs/utilities/b4wind_guide/trilinear.html
  2. Replies
    3
    Views
    2,716

    Thanks - but this doesn't really help. I...

    Thanks - but this doesn't really help. I understand what interpolation is - what I'm trying to do is work out how to interpolate in 3D dimension.

    Thanks anyway.
  3. Replies
    3
    Views
    2,716

    3D interpolation

    Hi,

    Does anyone have any code hints or pseudo code they would be willing to share to help me work out how to interpolate 3D data?

    I have numeric values/properties stored in a 3D array, but I...
  4. No - but tell me more! I'm dealing with the...

    No - but tell me more!

    I'm dealing with the same issue at present. Any hints/links to info would be great!

    Kevin.
  5. Replies
    5
    Views
    393

    Hi, cut it out in photoshop, and save for web...

    Hi,

    cut it out in photoshop, and save for web as a PNG with transparency - when you import it into flash the alpha channel will be preserved.

    Kev.
  6. Oh yes - and I forgot to mention that the...

    Oh yes - and I forgot to mention that the variables Check1 and Check2 are being set fine - I'm tracing them and they are what I expect.

    Thanks - Kevin.
  7. Hello. I am having a bit of a problem in...

    Hello.

    I am having a bit of a problem in getting the syntax right when targetting a movieclip by using variables.

    The following works fine

    if (_root.rect1.hitTest("_root.rect"+check2)) {
    ...
  8. Replies
    1
    Views
    419

    Anyone know why a Flash 4 embedded file would ask...

    Anyone know why a Flash 4 embedded file would ask the user if they want to download Flash 5?

    Kevin.
  9. Replies
    33
    Views
    1,691

    Thanks for the info - you're right, I could have...

    Thanks for the info - you're right, I could have done - but after all this is the 'Flashkit Community', and friendly communities don't hold back in talking to each other - eh? (grin)
  10. Replies
    33
    Views
    1,691

    Hi, what's an iframe?

    Hi,

    what's an iframe?
  11. Replies
    33
    Views
    1,691

    Hi - how do you actually write this code - do you...

    Hi - how do you actually write this code - do you need a particular type of editor to 'create' the email?

    Thanks.
  12. Replies
    14
    Views
    1,085

    Hi - did you ever find a solution to this? Or any...

    Hi - did you ever find a solution to this? Or any further info?

    Even if non-compliant email clients could display a piece of text explaining the lack of flash that would be better than nothing.
  13. Hi, need a laser for a space game - the only...

    Hi,

    need a laser for a space game - the only way I could work out to do this was with the following bit of code on a mc with a line in it. Only thing is, it gets fat as it gets long. I must be...
  14. Hi, Bit new to all this ASP stuff, but I am...

    Hi,

    Bit new to all this ASP stuff, but I am using

    getURL ("http://www.mydomain.com/writscor.asp", "", "POST");

    to send some variables to to an ASP page which puts them in an ACCESS dbase...
  15. Yep - thanks for that. I get the jumping to a...

    Yep - thanks for that. I get the jumping to a frame by targeting to root fine, as for the other problem, I'm still no closer to a solution, apart from as you mentioned "bodging" it by jumping to a...
  16. Hi, Not sure why this isn't working - and I...

    Hi,

    Not sure why this isn't working - and I feel quite embarrassed asking.

    I have a movie clip, in which are a number of buttons I'm using to navigate the root movie.

    The buttons which jump...
  17. Thread: Physics

    by kevinbath
    Replies
    13
    Views
    1,235

    No problem - I was working on something similar...

    No problem - I was working on something similar at the time.

    To gradually get the ship to slow down, you need to apply drag. This is simply -ve thrust, at a magnitude proportional to the velocity....
  18. Thread: Physics

    by kevinbath
    Replies
    13
    Views
    1,235

    Here you go - I've completely re-written it to...

    Here you go - I've completely re-written it to use thrust instead of velocity - it'll make it easier to see whats going on. Also simplified the angles a little.

    onClipEvent (load) {
    theta = 0;...
  19. Thread: Physics

    by kevinbath
    Replies
    13
    Views
    1,235

    Sorry, complete rubbish. Wrong piece of code....

    Sorry, complete rubbish. Wrong piece of code. I'll post the right bit in a minute!

    Kevin.
  20. Thread: Physics

    by kevinbath
    Replies
    13
    Views
    1,235

    Give this a go. Firstly, in the on...

    Give this a go.

    Firstly, in the on clipevent(load) code, define vx = 0 and vy = 0

    Then replace

    this._x = this._x +( (velocity/scale) * Math.cos(theta/180*Math.PI));
    this._y = this._y -(...
  21. Thread: Physics

    by kevinbath
    Replies
    13
    Views
    1,235

    Re: I dont understand all of the code

    I'll give it a go.

    if (Key.isDown(Key.LEFT)) {
    theta = theta + angle_inc;
    } else if (Key.isdown(Key.RIGHT)) {
    theta = theta - angle_inc;
    }

    This bit just increments (rotates to the...
  22. Thread: Physics

    by kevinbath
    Replies
    13
    Views
    1,235

    Hi, your ship is a movieclip, yes? Here's some...

    Hi,

    your ship is a movieclip, yes? Here's some sample code for this clip

    onClipEvent (load) {
    theta = 90;
    velocity = 0;
    scale = 20;
    angle_inc = 5;
    }
  23. Thread: Physics

    by kevinbath
    Replies
    13
    Views
    1,235

    Actually, just looked at your question again. If...

    Actually, just looked at your question again. If you need to move the spaceship in a direction as well, you will need to use a little trig. I've posted some code to do this in this board in the last...
  24. Thread: Physics

    by kevinbath
    Replies
    13
    Views
    1,235

    You need to define a variable which you use for...

    You need to define a variable which you use for your upward velocity, which you will add to the y position of your spaceship movieclip each frame. If you detect an UP keypress, increment this...
  25. Hi, you need to know a little trig, and a...

    Hi,

    you need to know a little trig, and a little bit of simple vector maths to get this to work properly.

    When you press LEFT or RIGHT your are altering the angle of your velocity vector (lets...
Results 1 to 25 of 32
Page 1 of 2 1 2




Click Here to Expand Forum to Full Width

HTML5 Development Center