Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - hellninjas

Pages: [1] 2 3 ... 45
1
TI-BASIC / Re: xLIB-BASIC ERR:DIM
« on: September 15, 2013, 09:24:24 pm »
Problem solved!
eheh
Thanks a bunch you two :3

2
TI-BASIC / Re: xLIB-BASIC ERR:DIM
« on: September 15, 2013, 08:53:04 pm »
Code: [Select]
:ClrDraw
:16→X
:16→Y
:[[0,0,0,0,0,0,0,0,0,0,0,0][0,1,1,1,1,1,1,1,1,1,1,0][0,1,1,1,1,1,1,1,1,1,1,0][0,1,1,1,1,1,1,1,1,1,1,0][0,1,1,1,1,1,1,1,1,1,1,0][0,1,1,1,1,1,1,1,1,1,1,0][0,1,1,1,1,1,1,1,1,1,1,0][0,0,0,0,0,0,0,0,0,0,0,0]]→[A]
:
:0→K
:Repeat K=45

:¦ real(2,0,0,0,12,8,0,12,0,8,1,0,8,0
:¦ real(1,X,Y,1,8,1,2,0,0,0,1

:¦ X→S:Y→T

:¦ getKey→K
:¦ If K=24
:¦ X-8→X
:¦ If K=25
:¦ Y-8→Y
:¦ If K=26
:¦ X+8→X
:¦ If K=34
:¦ Y+8→Y

:¦ If [A]((X/8)+1,(Y/8)+1)=0:Then
:¦ ¦ S→X:T→Y
:¦ End
:
:End

Repasted~

3
TI-BASIC / Re: xLIB-BASIC ERR:DIM
« on: September 15, 2013, 08:19:15 pm »
So because the values of X and Y reach 0, that's what I end up checking for in the Matrix, which doesn't have a 0,0.
But if I add one to X or Y than my sprite has the ability to go off the field.
This is getting frustrating :P

4
TI-BASIC / Re: xLIB-BASIC ERR:DIM
« on: September 15, 2013, 05:26:45 pm »
Sorry, I should've been more clear.

When I start the program, if I move my character left, or up, it gives me the error: "ERR:DIM"
Which, if I press "Goto Error" it brings me to that said line of code.

Code: [Select]
:8→X
:8→Y
://Beginning of Matrix : It directs me here.

5
TI-BASIC / xLIB-BASIC ERR:DIM
« on: September 15, 2013, 05:20:17 pm »
So I have this current problem while playing with tilemaps.
Code: [Select]
:ClrDraw
:8→X
:8→Y
:[[0,0,0,0,0,0,0,0,0,0,0,0][0,1,1,1,1,1,1,1,1,1,1,0][0,1,1,1,1,1,1,1,1,1,1,0][0,1,1,1,1,1,1,1,1,1,1,0][0,1,1,1,1,1,1,1,1,1,1,0][0,1,1,1,1,1,1,1,1,1,1,0][0,1,1,1,1,1,1,1,1,1,1,0][0,0,0,0,0,0,0,0,0,0,0,0]]→[A]
:
:0→K
:Repeat K=45

:¦ real(2,0,0,0,12,8,0,12,0,8,1,0,8,0
:¦ real(1,X,Y,1,8,1,2,0,0,0,1

:¦ X→S:Y→T

:¦ getKey→K
:¦ If K=24
:¦ X-8→X
:¦ If K=25
:¦ Y-8→Y
:¦ If K=26
:¦ X+8→X
:¦ If K=34
:¦ Y+8→Y

:¦ If [A](X,Y)=0:Then
:¦ ¦ S→X:T→Y
:¦ End
:
:End

And it seems to redirect me to the beginning line of code:
Code: [Select]
:8→X
:8→Y
://Beginning of Matrix : It directs me here.

I'm not sure what it is that's wrong with my code, and i've tried changing:
Code: [Select]
:¦ If [A](X,Y)=0:Then
:¦ ¦ S→X:T→Y
:¦ End

To:

Code: [Select]
:¦ If [A](X/8,Y/8)=0:Then
:¦ ¦ S→X:T→Y
:¦ End

But that seems to prevent me from going to most of the places on the tile-map.
So how would I get this to work..?

EDIT: Sorry, this is using xLIB. (Forgot to mention.)

6
Computer Programming / SFML and Dev-C++
« on: May 28, 2013, 09:27:29 pm »
Trying to use the Linker, and i'm sure I could get the rest done.
But I got four errors with this code.
Code: [Select]
#include <SFML/Graphics.hpp>
#include <SFML/Window.hpp>
#include <iostream>
using namespace std;
using namespace sf;

int main() {
    Window window(VideoMode(800, 600), "My Window");
    cin.ignore();
    cin.get();
    return 0;
}

And the errors are(Linker errors of course.)
  [Linker error] undefined reference to `_imp___ZN2sf6StringC1EPKcRKSt6locale'
  [Linker error] undefined reference to `_imp___ZN2sf9VideoModeC1Ejjj'
  [Linker error] undefined reference to `_imp___ZN2sf6WindowC1ENS_9VideoModeERKNS_6StringEjRKNS_15ContextSettingsE'
  [Linker error] undefined reference to `sf::Window::~Window()'
  [Linker error] undefined reference to `sf::Window::~Window()'
  ld returned 1 exit status

7
Humour and Jokes / Re: Making up code for you habits
« on: May 24, 2013, 05:05:41 pm »
:"Bed"->Str1
:"Insomnia"->Str2
:"Me"->Str3
:DelVar Str2
:Str1+Str3

Just something I wish I could do :P

8
Other / Re: New Desktop. Or as I like to call it, Batman.
« on: May 24, 2013, 12:06:48 am »
I've been asking for a new computer for years now. (Literally nothing else, i've been working hard for it but have yet to receive anything but clothes.)
But awesome Eeems!

9
Computer Projects and Ideas / Re: Hellninjas Stuff n' Junk
« on: April 06, 2013, 01:25:09 pm »
Isn't DarkBASIC the language of FPSCreator and other programs of that line?
Yep, seems easier to use for me, so i'm trying it out.

Also, "C:\Users\Sparkling Princ"
I don't own my laptop, it belongs to my step mother's sister who passed away. It's a pathetic 1.6GHz Vista >_>
Even though I changed my username, it's still read as "Sparkling Princess" xD
* Sorunome thinks they are c++
* Sorunome wants hellninjas to upload the sources also so that it is moar easy to run on linux
nu c:

10
Computer Projects and Ideas / Hellninjas Stuff n' Junk
« on: April 06, 2013, 02:06:15 am »
I'm going to drop a bunch of my "Projects" and hopefully soon enough, games, into this thread.
Mostly just a bunch of tests though, only for windows, sorry.
Testing3: String testing.
Testing4: Movement testing.

11
Introduce Yourself! / Re: Hello!
« on: April 04, 2013, 10:58:33 pm »
Heya and welcome to Omnimaga :D
Have some peanuts with your stay~
!peanuts
I see you like Ti-BASIC, too :3
Do you know any other languages?

12
I don't even know why George Lucas sold Lucas Arts, and damn Disney, what happened to the new Star Wars?
So much hope over nothing :/


13
Miscellaneous / Re: What is your avatar?
« on: April 02, 2013, 10:52:19 pm »
For Homer, expect anything having to do with catgirls or Taokaka/Torakaka ^u^

14
Miscellaneous / Re: What is your avatar?
« on: April 02, 2013, 10:48:08 pm »
Ohai HOMER, you can't hide your name change >:U
Mines a Charmander, can't go wrong with that :3

15
Computer Programming / Keypresses in C++
« on: March 25, 2013, 08:26:52 pm »
I've read up a bit through google.
getch(); from the <conio.h> seems to have a lot of hits, yet i'm not sure how to use it :c
Or are there other ways?
I'd mostly like to pause the program and wait for a keystroke, then check if the user pressed "y" or "n".

Pages: [1] 2 3 ... 45