[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] Axelay-like background scroll getting operand error



ypos2=(256.0/(1.0+(pow(2.0,(4.0-(ypos/64.0))))))*2.0

-Zack

On Jul 21, 2009, at 10:30 AM, Paulo Silva wrote:

Hi!
i'm getting 'TypeError: unsupported operand type(s) for ^: 'float' and
'float'' when trying to start simulating an Axelay background scroll

http://pastebin.com/f48d2045

(01.png used can be anything)

do someone know how can i replace '^', or which wiser calculation i must do?
thanks