RBuster's Recent Forum Activity

  • zenox

    I know. It was my mistake. I deleted unintentionally.

  • Hi Bl4ckSh33p

    Sorry to reopen this thread but I've this same issue and I tried to use the rotate toward action but the eyes only rotate on its own axis. Did you change the image point position too? Could you give some more details? Thanks in advance.

    Edited:

  • Thanks blackhornet

  • Hi

    I need to convert the wallclocktime value to milliseconds to submit to leaderboard as required.

    Leaderboard score specification:

    Time leaderboards present scores in hours / minutes / seconds / hundredths of a second format. You must submit scores as milliseconds, so 66032 would be interpreted as 1:06.03.

    I tried simply multiply the value by 1000 but not worked.

    I'm using this: floor(wallclocktime_var*1000).

    Thanks in advance for any help.

  • korbaach

    Extremely didactic! Thank you for your kindness and for your precious time.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Hi tarik00555

    Thanks for the suggestion. Although I know what is dictionary I never used it. As I understood, I need to create 30 keys and values (both strings) on start of the layout and, in this case, I can use my first solution: (set text to "dict"&str(level)) to access its data. Is it right?

    ***Edit

    Actually, I think that I need to use something like this:

    Dictionary > has key: "mykey"&str(level) > set text to: Dictionary.CurrentValue

    Is it right?

  • Maybe it is a silly question. I've 30 variables (var1, var2, var3,...) and each one has a value with a combination of letters. I need to access this values according to the specific level in the game. To avoid using "if" for each level, I tried to use something like: set text to "var"&level. But it did not work. So, I created a variable "var" and I used it as before: set text to var&level - but it failed again. Although I know the answer, I would like to confirm this: is it wrong to access a variable in this way? If yes, anyone has another idea of how could I simplify this action with a few lines? Thanks in advance.

  • LittleStain - Thanks for the example.

    - Nice solutions. I'll try it.

  • Thanks LittleStain

    I'll give it a try.

  • Is the same thing that you wrote with the difference that I use a variable to define the random range. The problem of the "random()" is the repetition of the same number more frequently than "choose()", at least was that I've observed (eg number = random(0,5) > number = 5, number =5, number =3, number =5, ...). So, to prevent repetition when I use "choose()" I usually include several copies of these numbers in different positions like this: chosse(1,2,3,2,3,1,3,1,2). This works for me.

  • Normally I use "choose()" but now I've to use "random()" because it will attend me in several layouts (eg: int(random(number, var))). The problem with random is the constant repetition of numbers. When I use "choose()", I usually include copies of the numbers or strings (eg: 1,2,3,4,5,5,4,3,2,1,1,3,5,2,4) and the possibility of repeating numbers is not very common. But now I need to use "random()" and would like to know if anyone have a simple solution to improve it.

    Thanks in advance

  • Thank you korbaach and Magistross

    Magistross: I understood (0 is always false / 1 is true, right?). It works very well. Thanks.

    As I said, the sprites will fall and when it changes to a different position from the one I've specified in the "pick comparison", I need the sprite to return to its default frame (0). I tried to use "else" to do this but it's no work. Do you have any idea how to solve this?

    ***Edit: Everything is okay now. Thanks.

RBuster's avatar

RBuster

Early Adopter

Member since 29 Oct, 2012

Twitter
RBuster has 2 followers

Connect with RBuster

Trophy Case

  • 11-Year Club
  • Jupiter Mission Supports Gordon's mission to Jupiter
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • Forum Hero Made 1,000 posts in the forums
  • Coach One of your tutorials has over 1,000 readers
  • Educator One of your tutorials has over 10,000 readers
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

20/44
How to earn trophies