ranma's Recent Forum Activity

  • short answer: mobile first.

    that's it :) just create a game in 800x480 and think mainly about mobile, but have in mind desktop all the times. remember that on mobile you don't have to "mouse is over object" and all that stuff.

    also there's no general great answer to that kind of question, it all depends on what kind of game you're making.

    have fun!

  • hello,

    I got some c2 games exported to play store, here are links to two of them that you can test, they can be hoggy:

    play.google.com/store/apps/details

    play.google.com/store/apps/details

    I noticed that since galaxy S+ phones the android performance seems to be quite good, I tested lately a game that on my nexus one runs at around 10 fps, on S+ I was surprised it was running at around 25fps which is more I could wish for actually.

    Would be grat to hear from you about your performance tests. If you could include "@ranma" in your replies as I don't think there's a "watch topic" option here :( and including ranma will send me a notification about your answers.

    If you'd like, I can test your games on a nexus one device which is quite slow, so it can give you an insight how an app will run on slower devices :)

    cheers

  • first of all set textbox type to "text" NOT "textarea". text is single line, textarea is multiline - that's why you see these arrows.

    if you do this and arrows don't disappear you have to add css style overflow:hidden or overflow:auto

    as for the limit you can to id with events with compare two values system condition:

    len(TextBox.Text) > 2
    [ul]
    	[li]> TextBox set text to left(TextBox.Text,2)[/li]
    [/ul]
  • nope, it's super easy to preview what is sent via post.

    one way to secure it is to use https (via ssl) or to make it more difficult tu post fake scores using cryptography using 3rd party plugin, if i remember right it's called "cb hash". construct itself does not have md5 calculation implemented so for arcade there's no way to do this.

    hope that helps

    also, this forgotten topic: http://www.scirra.com/forum/md5-maybe_topic54223_page2.html

  • use a local variable then and store floor(ATTACK * 1) + floor(random(1,5)) in it.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • there is an event for text object: Set Text, you are using it on "dam" and "hp" objects.

    create new text objects and set its text to floor(ATTACK * 1) + floor(random(1,5)) like you do for "dam".

  • you can create a text object and set its text to the same value that you subtracted from HP. give it a fade behavior with fade in 0, wait 1 and fade out 1, destroy after fade checked, and it will fade nicely every time you inflict damage.

  • game will do an alert if it can't find at least one instance in layout, so yes, you must have at least one instance of every sprite created NOT by events. I think a quite good solution would be to create a layout with all game sprites, and never go to that layout if you cannot bare having instances outside standard layouts and destroying them on start :)

    as for onCreated - well create object event triggers on created - that's obvious. already created objects are not created during the game, they are there from the beginning - that's why the oncreated doesnt trigger I think.

    hope that helps

  • Sprite is not on screen?

    Sprite: set platform movement to inactive :)

    try it, but I don't think it will help. mobile performance is generally quite poor.

  • or try:

    on start of layout
    for every Sprite
    add local variable old_x and set it to Sprite.X
    add local variable old_y and set it to Sprite.Y
    destroy Sprite
    create Sprite at x = old_x, y = old_y
  • floor is rounding down - it acts like round() but when you have floor(1.9) it rounds down to 1 when round() rounds to 2, while ceil is the opposite it rounds always up, so ceil(1.1) becomes 2. useful with random().

    back to your question, you can simply subtract 10 + something from HP you dont have to limit yourself to a value you can subtract a whole expression like 10 + variable1 * 2 - variable2 from HP.

    or maybe i don't get the real issue here :(

  • if you mean randomly subtract 9 to 11 then:

    subtract ATTACK - 1 + floor(random(3)) from HP

    or if you want 10%:

    subtract ATTACK - floor(ATTACK * 0.1) + floor(random(ATTACK * 0.3)) from HP

ranma's avatar

ranma

Member since 20 Feb, 2008

None one is following ranma yet!

Connect with ranma

Trophy Case

  • 16-Year Club
  • Coach One of your tutorials has over 1,000 readers
  • Educator One of your tutorials has over 10,000 readers
  • Email Verified

Progress

19/44
How to earn trophies