Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

2D All the way! / 2d bullet issue

Author
Message
A_Human
13
Years of Service
User Offline
Joined: 21st Feb 2011
Location:
Posted: 26th Feb 2011 09:48 Edited at: 26th Feb 2011 17:29
Hey guys, i'm trying to create a simple 2 player 2d platformer. I found a tutorial for shooting at http://forum.thegamecreators.com/?m=forum_view&t=58720&b=4 but when i ran some of the code, i had errors. The program compiled, but when ran it said the error was Sprite Number must be greater than 0 at line 131. Here is the code for shooting so far:
Van B
Moderator
21
Years of Service
User Offline
Joined: 8th Oct 2002
Location: Sunnyvale
Posted: 1st Mar 2011 09:33
What is B? - it's quite strange to refer to sprites using something like B-x, I mean it would only take B to be less than 11 to cause that problem, your not showing us where B comes into it.

Health, Ammo, and bacon and eggs!
flashing snall
18
Years of Service
User Offline
Joined: 8th Oct 2005
Location: Boston
Posted: 2nd Mar 2011 04:24
Yea, make sure you find were it says something like
B=(some number)

If you cant find that, im guessing that B = 0 , and there in lies your problem.

WOW GOLD
12
Years of Service
User Offline
Joined: 3rd Apr 2011
Location:
Posted: 3rd Apr 2011 08:36
I like 2D games,because I think 3D games is too difficult for me.

[url= http://www.susanexpress.com]BUY WOW Gold[/url]
[url= http://www.susanexpress.com]Cheap WOW Gold[/url]
[url= http://www.susanexpress.com]World of warcraft Gold[/url]

Login to post a reply

Server time is: 2024-03-29 01:57:37
Your offset time is: 2024-03-29 01:57:37