Regga354's Forum Posts

  • Have you tried Spawn or Create object event?

  • Hello

    I'm currently creating a game that looks like RPG game. I have an issue to attack specific instance of enemies with a bullet which the bullet always aim the clicked or targeted enemy. In this case I use Set Angle Toward Position in Every Tick Event. There the issue appears. Every X second an enemy will spawn. But, when I click specific object the bullet will aim random enemy. How do I can match the bullet target with clicked enemy? That action is possible in the same event (Click Event), but in another event (That is Every Tick event) the targeted enemy cannot be determined.

    I try like this:

    On Left Button Click on Enemy -------> Spawn Projectile

    Every Tick -------> Projectile Set angle toward (Enemy.X, Enemy.Y)

    I heard this can be solved by matching UID. But I don't know. Can you help me?

    Best regards

  • I use Key is down event to play a walking animation. Then I use On Left button Click on Some Object to play attack animation. This works if the walking animation is not playing. How do I play attack animation when walk animation is playing, then back to walk animation when attack animation ends? Thank you.

  • I feel your stress and I have fought to get those settings right many times.

    You can set acceleration to be less than player speed and decelleration to be very high like 2000 and that will give you close to what you want.

    The only other way is to not use 8 direction and use straight movement commands setting the sprite to X and Y coordinates but requires more events and loses some of the 8 direction behavior features.

    Thanks for the reply. I tried many times to configures the Max Speed, Acc, and Dec, then finally I got close to what I want.

  • I'm very stressed by Acceleration and Deceleration on 8 Directions Movement. Why there is no movement with simple move, when I press D and then sprite move directly on some speed. I don't need any Acc/Dec. I've try to set Acc/Decc to 999 or even more, but this just make the movement feels heavy and sometimes there is delay on the input. THANKS!

  • I don't see anything wrong. The image size on the layout is showing the same size as when displayed in the image editor.

    Maybe screenshots would make it clearer for others to see?

    Ok. This is the pic:

    umm.. maybe there is something wrong in my pc? Thank you

    UPDATE:

    On run layout, image size is actuall. But, on the canvas image size keep reduced. It makes me difficulty to edit my game on the canvas. Now, my problem only that. Thank you

  • For randomizing arrays you can check my tutorial; https://www.scirra.com/tutorials/469/implementing-fisher-yates-shuffling-algorithm

    Also there is youtube video about it

    Thank you for your response

  • Problem Description

    When an object with image size more than 1000+, the actuall size changed more small. So, currently i make a game that use large image, and it size more than 1000. I design it and export to png file. When i import that png file, in image editor is fine. No Problem. The Size is fine. But, in game canvas the image size is reduced. Important: only image size reduced, not the object.

    Attach a Capx

    .Capx Attached.

    Description of Capx

    Simple Capx. There is an image with large more than 1000, and that is my image file in my game.

    Steps to Reproduce Bug

    • Step 1 - Open file
    • Step 2 - See on the canvas. See the image object.
    • Step 3 - Open object in image editor. See the actuall size.

    Observed Result

    Image size reduced from actuall size.

    Expected Result

    Image size should same as actuall size.

    Affected Browsers

    -

    Operating System and Service Pack

    Windows 7 64-bit

    Construct 2 Version ID

    r175

    Sorry if that is not a bug

  • Hello!

    Currently i makes Memory Match game. But, i dont know how to randomize the cards. Someone tell me to use Array for it. But, however, i've never use it. So, can you tell me how?

    Also i need event to cards row.

    Thanks

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Regga354 So far it works perfectly. Thanks so much. This is really cool.

    thank you

  • Umm.., my friend tell that is free :/

  • see here: http://www.kenney.nl/

    That link i got from my friend <img src="{SMILIES_PATH}/icon_e_biggrin.gif" alt=":D" title="Very Happy"> Hope this help <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile">

  • i have makes project what you are need (I think). My Friend asking same problem. I work midnight, but i have done and get result!

    this is my project: http://c2tuts.tk/project/ChangeControll/

    and this is download link: https://drive.google.com/uc?export=down ... GJDeERjWnM

    There are using my country language (Indonesia, Melayu). So, if you dont understand just click "jump" or "move right" then press your keyboard key you want. Sorry for my english.

    I hope this help!

    Regards,

    -Regga354

  • You can use variable to save bombs. So, every player and bomb contact, add 1 to "bomb" variable. Then every bomb spawned, just subtact 1 from "bom" variable. And makes event like this: If "bomb" variable = 0, spawnable bomb disable..

    You can ask me if you dont understand

  • Can you show me your eventsheet? Maybe i can help you