zikdot's Recent Forum Activity

  • But when i need to write animation1 > on collision with > xyz > destroy

    The problem is that each animation gets destroyed by a different object and because they are animations it only lets me select the 1 sprite that is comprised of the animations as opposed to the animations themselves.

  • Now i have a sprite and it gets rotated 90 degrees every time a specific button is pressed. Now it works fine and the coding is simply

    on touched object > rotate sprite 90 degrees clockwise

    What i dont like is that it rotates without any kind of animation (can't think of the word i'm trying to use).

    Basically when it rotates I want to be able to see the "frames" so to speak between each rotation to make it look more realistic.

    Hope i'm making sense

  • Thanks works great. Not sure why i didn't consider that haha

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • procrastinator I seem to be having some minor complications with my spawning. I posted it as a separate question.

    If you have a chance to look at it that would be GREAT! heres the link

  • I'm making a game that involves 4 enemies. When spawning, one of the enemies will be chosen at random using an array.

    The way i did this was by creating a sprite and within the sprite add 4 seperate animations(being the 4 enemies)

    Then i coded the array as follows.....

    On start of layout > Array > Enemies > Push Back "names of enemies" on X axis

    and for spawning it and selecting the enemy i used the following

    System > every random (1,2) > Create enemy > layer 1 at x , y

    > Enemy > Set animation to > (Enemy.At( floor(random(Enemy.Width)) )

    Now the problem is that when the enemy is created it should select one of the 4 enemies from the animation at random, which it does. However the enemy that is the default animation (the first animation/Main Sprite) is spawned much more frequently than the others??

  • Okay thank you

  • brilliant thanks. Yeah i'm quite the newbie at this haha. Thanks so much. I'll let you know how it goes

  • Haha yeah having looked at that link it does look like a very similar concept.

    How do you pin the sprites together though?

  • so it has the possibility of being in 4 different positions when rotated 90 degrees

  • and if i want the sprite to rotate so that the yellow face was where the red face was for example how would i do that. since it need to rotate but also change its position, and then when rotated change its position again

  • can i create a square which will be used as a sprite where by each of the 4 faces of the square will act differently.

    What I mean by this is that if an object hits the one specific face it will destroy the object but if it hits the other 3 faces it wont?

  • Thank you for your help guys!

zikdot's avatar

zikdot

Member since 4 Mar, 2015

None one is following zikdot yet!

Trophy Case

  • 9-Year Club
  • Email Verified

Progress

10/44
How to earn trophies