Professional Web Applications Themes

Copy and resize the sprite. How!!?? - Macromedia Director 3D

Every time i copy the sprite(1) with this code, the size of the bitmap is 320x240 all the time.what i am doing wrong.check it out! on mouseup x = new(#bitmap,mmember 1 of castlib 'temp') nHeight = sprite(1).rect = rect(640) nWidth = sprite(1).rect = rect(480) n = (sprite(1).member.image).duplicate() x.image put n end What i want if there?s a way to resize the bitmap to 640x480,and if somebody know how and want help me with the code. Many thanks in advance....

  1. #1

    Default Copy and resize the sprite. How!!??

    Every time i copy the sprite(1) with this code, the size of the bitmap is
    320x240 all the time.what i am doing wrong.check it out! on mouseup x =
    new(#bitmap,mmember 1 of castlib 'temp') nHeight = sprite(1).rect = rect(640)
    nWidth = sprite(1).rect = rect(480) n = (sprite(1).member.image).duplicate()
    x.image put n end What i want if there?s a way to resize the bitmap to
    640x480,and if somebody know how and want help me with the code. Many thanks in
    advance.

    catarrento Guest

  2. #2

    Default Re: Copy and resize the sprite. How!!??

    set the defaultRect property of your 3d member to rect(0,0,640,480)
    Aldo Hoeben Guest

Similar Threads

  1. Copy and resize the sprite on the stage?
    By catarrento in forum Macromedia Director 3D
    Replies: 0
    Last Post: March 9th, 02:06 PM
  2. Copy sprite behaviour
    By Alec Yevilov in forum Macromedia Director Lingo
    Replies: 6
    Last Post: October 15th, 09:15 AM
  3. flash sprite resize issue
    By nochump webforumsuser@macromedia.com in forum Macromedia Director Lingo
    Replies: 1
    Last Post: September 28th, 05:24 PM
  4. Search text in sprite and play the sprite
    By Godwin in forum Macromedia Director Lingo
    Replies: 2
    Last Post: July 23rd, 01:06 PM
  5. Replies: 0
    Last Post: June 26th, 01:08 AM

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
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139