Welcome to Keen Software House Forums! Log in or Sign up to interact with the KSH community.
  1. You are currently browsing our forum as a guest. Create your own forum account to access all forum functionality.

A little help

Discussion in 'Programming Questions and Suggestions' started by Updradedsam3000, Nov 29, 2017.

Thread Status:
This last post in this thread was made more than 31 days old.
  1. Updradedsam3000 Trainee Engineer

    Messages:
    10
    I've started messing with in game programming and things have mostly been going well, but I'm having a little trouble with this:

    if(C%2==0){
    Tblk1.ApplyAction("Start");​
    }
    if(C%2==1){
    Tblk3.ApplyAction("Start");​
    }​

    My problem is both of these are being activated no matter the value of C.
     
  2. Malware Master Engineer

    Messages:
    9,549
    I highly recommend going on the #programming-in-game channel on the Discord server. As for your issue, the posted code in itself don't seem to have an issue so your problem must be elsewhere.
     
  3. Updradedsam3000 Trainee Engineer

    Messages:
    10
    Thanks for the help, I'll check out the discord.

    Regarding my problem, I ended up realizing I was using two ifs instead of an if and an else if on another programming block. So that programming block was the one starting two timers.
     
Thread Status:
This last post in this thread was made more than 31 days old.