Forums > Javascript

jitter object references

April 21, 2010 | 2:43 pm

Hi all,

I’m delving into javascript to resolve an issue I have with some display of text. The problem is that I can’t find any reference on syntax of how to create jitter objects and address their params.
I just am lost when looking for how to set the text of a instance when creating one instance
Where is the documentation on this?

April 21, 2010 | 10:43 pm

Check out Jitter tutorials 45-47, you might find something useful there. If you have specific questions after that, post how far you have gotten.


April 22, 2010 | 5:44 am

thx Ben,

I already had those covered (more or less)
so specific question:
when you do:
jshape= new JitterObject("","screen");
you get a cube, changing position is jshape.position, so these are the ‘normal’ jitter attributes

But when you have:
jtext = new JitterObject("","screen")
how do you set the text of this object?
jtext.text="test" does not work

I could figure this out myself if I had a reference of what functions there are available, but I don’t find any reference

April 22, 2010 | 6:10 am

Hello llumen,

var mytitle = new JitterObject ("", "mywindow") ;
    mytitle.color = [0.83, 0.74, 0.84, 1.] ;
    mytitle.font ("Comic Sans MS") ;
    mytitle.size (48) ;
    mytitle.text ("toto") ;

myobject.something = k
myobject.something (k)

Attribute or message ; sometimes i don’t know why, i just do some test.

I join a big javascript from a project i done ; it doesn’t work alone ; but you can found syntax examples inside.

  1. badaboum.js

Viewing 4 posts - 1 through 4 (of 4 total)