#Java/Processing

22 messages · Page 1 of 1 (latest)

lofty robin
#

How much knowledge from java applies to processing? I'd like to make a little animation/Gif with a simple gray rectangle(road) and 2 dots going left and right(cars). I want to make an object/a class to make the car thing easier and less redundant to code, how do you do that? Ive made a new "tab" for my car class now but i dont know how to continue

stray sundialBOT
#

This post has been reserved for your question.

Hey @lofty robin! Please use /close or the Close Post button above when you're finished. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.

TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.

uncut wolf
#

As far as I know, the language itself should be the same

#

but there is a different API etc.

lofty robin
#

API?

#

Im not too familiar with terminology im a beginner

uncut wolf
#

there are different available classes/methods

#

there are different things you can use in Processing

#

but the language itself is the same I think

lofty robin
#

Is this already the correct Format or did the app just give me a weird template

uncut wolf
#

the format itself is correct but writing code on mobile phones is a pretty bad idea to be honest

lofty robin
#

Lack of Alternatives

#

And boredom when im outside

#

Will this work if i dont define x/y within the code of the class? Theyre defined in the main code under the test.pde tab

#

Apparently not-

uncut wolf
#

you need to declare any variables before using them

lofty robin
#

Its working now

uncut wolf
lofty robin