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 - Basic_Coder_Man

Pages: [1]
1
General Jo Engine Help / Re: Question about IF statements
« on: October 11, 2016, 06:19:04 pm »
yes thats what I meant :)  how do I code that in jo engine?

2
General Jo Engine Help / Question about IF statements
« on: October 07, 2016, 08:46:40 pm »
Ive managed to be able to change the background image by pressing A,B or C. Now Im trying to code it so you can choose different images depending on what image is on the screen .

for example:

ImageA is on screen
button A -loads Image B
button B -loads Image C
button C -loads Image D

but then when Image B is displaying you could choose say imageE - H so for each displayed image, you could choose different pictures to load,, rather than just one set for button A, another for button B and one for button C.

Now in Basic this would be a simple IF statement along this lines of"If Image A = enabled and Button A = pressed THEN Image G = enabled" but I have no idea how to do this in Jo engine, I tried to have a set:

static int   level = 0;

then set:

   if (jo_is_pad1_key_down(JO_KEY_C))
        level = 1;

what I want in a nutshell is when Button C is pressed Level becomes 1 and then if Button A is pressed and Level = 1 a set image would be displayed. I looked at IF statements in JO but couldn't find anything that looked like what I need. ^^;

hope I explained it well, hope someone can point me in the right direction :)

3
About you / Re: Welcome
« on: October 07, 2016, 08:30:58 pm »
hi all

Im new to console programming but hoping to be able to make something fun :)

Pages: [1]
SMF spam blocked by CleanTalk