Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!linus!philabs!prls!pyramid!hplabs!hp-sdd!nick From: nick@hp-sdd.UUCP (Nick Flor) Newsgroups: net.micro.amiga Subject: Re: Help with Animation Message-ID: <237@hp-sdd.UUCP> Date: Tue, 27-May-86 12:00:47 EDT Article-I.D.: hp-sdd.237 Posted: Tue May 27 12:00:47 1986 Date-Received: Thu, 29-May-86 07:13:37 EDT References: <236@jimi.unlv.UUCP> Reply-To: nick@hp-sdd.UUCP (Nick Flor) Organization: Hewlett Packard, San Diego Lines: 50 > I am trying to get my AnimOb to start in position 100-Y, > 50-X, but it always gets drawn in the upper-left corner of > my screen. I have set the AnX and AnY fields in the AnimOb > structure to my desired initial values, but it seems to ignore > it. I have also set the X and Y positions in the Bob's VSprite > structure to my initial values with no change. I have mixed > and matched setting the AnimOb only, the Bob only, and > combinations of both, but still come up with the same thing- > my AnimOb starts from the upper left corner. HAHAHAHAHAHAHAHAHHAHAHAHAHAHAHAHAHAHAHAHAWHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHA Hint -- LSR #6,DN ; This was my hint as to what was going on. Sorry to laugh. I ran across the same problem. None of the Amiga people were any help. Neither was the net. Perhaps I should tell you to use WACK and single step through the assembly language for the Animate command, (like I did) but I won't... THE PROBLEM: The problem is that most (if not all) the position variables/fields are fixed point numbers. AnX,AnY fields are fixed point numbers (26.6??? -- I forget), not 32.0. I think RingTriggerX,Y and TransX,Y are 26.6 numbers too. You were trying to start at 100,50, but since you specified a 32.0 number, the routine was plotting it at 100/64, 50/64. So, multiply your numbers by 2^6, and everything should be alright. Nuff said. Now, will someone help me with my FFP problem. Does someone have a program that actually uses the SPSin, SPCos routines? I can't seem to get it to work. And I don't want to single step with WACK again... And is the net interested in a Robotron-like game? Nicko -- ---------- Nick V. Flor ..hplabs!hp-sdd!nick "You going to help me find a Thylacine?" 'Nope' "But IBob needs the whiskers to close the gaps between our world and the next. Hideous creatures are pouring through even as we speak" 'What hideous creatures?' "Richard Simmons! John McEnroe! Mary Lou Retton! Sally Jessie Raphael! I hardly know where to stop" -- The Badger to the Wombat