rtex's Forum Posts

  • 8 posts
  • Hey rtex

    Here is one way you can do it (open in C3 editor.construct.net):

    https://1drv.ms/u/s!Ap_-qxoGKbDcgRFPhYOmmyirejQW

    thx mate for replying unfortunately i only able to follow only 2 code here.

  • rtex

    Why are you deleting and re-adding the exact same post (now for the 4th time) ?

    Trying to upload the capx file but always failed broken links

  • hello everyone how you doing so i been making this 1 game but i need the character to go from another room to another room and i put my room on layout.

    My problem is how can i go to layout 1 then to layout 2 and then goes back to layout 1

    Thanks in advance

    My capx if you all need it.

    dropbox.com/sh/dg0d3tfglabimra/AAAA5omUF2glwT4KDOEM8j2Ea

  • You do not have permission to view this post

  • Add a variable to your zombie called "health" (or really anything that helps you know what it's for). Set it to a value (we'll use 100 in this example).

    On arrow collides with zombie: call function "Arrow_hit_zombie" (Set parameter 0 to the zombie's UID, and parameter 1 to the arrow's UID)

    On function "Arrow_hit_zombie"

    --->zombie (choose by UID (function.param(0)) -> set health to clamp(self.health-50,0,100)

    ----> Arrow (choose by UID (function.param(1)) -> Destroy

    Zombie health = 0 --> destroy/set death animation

    Thx mate i will let you know if it works or not :3

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hello again sorry for asking too many question

    How can i make an enemy died after i shot 2 of my arrow or on 2 hit... i can make the enemy died in 1 hit and i thinks that too easy. I found a similar things that i want to do but i have no idea how to put the event....can someone tell me.

    Link to other forum that have a similar things to what i want:

    trying-to-make-a-two-hit-kill-enemy_t109855

    Link to what my current games look like:

    youtube.com/watch ... e=youtu.be

    Link to photo of event sheet and layout:

    imgur.com/a/Xcv7GtY

  • Check the position of Origin image point in Sprite Editor - double-click your arrow sprite and select Image points on the left toobar.

    Thanks mate it works :3

    If i have any question i will ask again :3

  • As you can see from this video my arrow doesnt seem to spawn correctly.

    youtube.com/watch

    and this is the image of event viewer and game layout

    imgur.com/a/bgmrHeb

    I dont know is it because of coding or images can someone tell me how to fix this.

    Hope you all can help me cause i'm new with construct 2 :3

  • 8 posts