' Increase the frame of animation displayed by the sprite
image=image+1

if image>4
image=0
endif

'Redraw the contents of the screen
Draw Frame

wend[/code]

Doing so I got a message that poped up on top of the coder section

quote: Identifier "endif" has not been declared.

Seggestions?

07-20-2007 21:14

Posted by:someone

Location:Quebec ( Canada )

it's 'end if' with a space, not 'endif'

07-20-2007 22:45

Posted by:penumbra

quote:it's 'end if' with a space, not 'endif'

Then how come in the animating sprites section of the sprites tutorial it saids endif without a space?

07-20-2007 23:13

Posted by:Jacob

Location:San Francisco, CA

A typo?

07-20-2007 23:22

Posted by:someone

Location:Quebec ( Canada )

Right seems like Mark made a typo - we could fix it, but Danny, has Mark given you access to the website yet?

07-21-2007 00:38

Posted by:penumbra

I still can't access the TNT Basic Help.htm and User Guide even though User Guide has a safari icon on it, but I can use the files in the TNT Basic User Guide folder.

07-21-2007 00:54

Posted by:someone

Location:Quebec ( Canada )

In TNT there is a 'help' menu, you can access the docs from there

07-21-2007 01:14

Posted by:penumbra

I still can't find the right section in TNT Basic Help to code for movement. Introduction to Sprites doesn't either. All I need to know is how to move a sprit around with keys A,S,W,D.

07-21-2007 01:22

Posted by:someone

Location:Quebec ( Canada )

window mode 640,480
load images 128

int x=320
int y=240

while true

if left then x=x-5
if right then x=x+5
if up then y=y-5
if down then y=y+5

sprite 0,x,y,0
draw frame

wend

-----

it uses arrows and not asdw but it shoul;d help you get started =)

07-21-2007 02:52

Posted by:penumbra

So thats how you do it. Thank you.

07-21-2007 13:46

Posted by:allnodcoms

Location:hertfordshire (England)

@ someone

I have moderator access, not admin. I have limited control in the forums, news and directory sections (still can't edit my own posts though!), but can't upload content... Bit ironic really as my day job is a web developer!

There is a full pdf version of the user guide and help manual in the directory though (plug plug!), and there's always the 'Learn' link at the top of the page...