DREZO's Forum Posts

  • Hello there,

    My name is Marcello, 21 years old, and just an German Graphic Designer that is in love with flat and simple vector design.

    Im looking for an Advanced Programmer that wants to collaborate with me and create desktop or mobile games.

    You should be able to program more complex games, and you should be motivated aswell thats everything ;D

    Send me a PM with your Skype -Name if you're interested, since I cant answer, or add me in Skype so that we can discuss about everything.

    Skype: fre4ky2 (the account is very old )

  • Sounds promising, you still search someone?

  • > gillenew Looks promising, love me some tactical strategy!

    >

    Thank you :3

    make a tactical game is no joke, gave me a hard work until now

    wow stunning graphics!

  • keep on going ! nice work

  • hey, thank you for your answer... it is working for me with your plugin, but to be honest i dont know what each of this functions do.. dont get me wrong normally i dont use plugins nothing against you, its just harder to understand for me

    maybe there is an way without them

    or would you translate thos functions into code that would be helpful too

  • You could do it just as you describe without the pathfinder.

    Give the player sprite two variables: currentTarget=0 and goalTarget=0

    Then give the square sprite one variable: targetId and number each instance, starting with 0, in the direction the board goes.

    So the setup would be the player is placed on square 0. Then your events would look like this to move the player 5 spaces for example.

    On start of layout

    --- player: add 5 to goalTarget

    player: currentTarget < self.goalTarget

    square: targetId = player.currentTarget+1

    --- player: set angle toward position (square.x, square.y)

    --- player: move forward 100*dt pixels

    player: is overlapping square

    player: currentTarget < self.goalTarget

    square: targetId = player.currentTarget+1

    --- player: add 1 to currentTarget

    I didn't take into account wrapping around the board or centering on the square but it's got the general idea.

    thank you for your answer! the basic idea it is working so far

    ht tp:// www114.zippyshare.com/v/i9L3657R/file.html

    but there are a couple problems,

    • in this example i could change the goaltarget to 4 instead of 5 and it would be the same result why?
    • also, my idea was to let the player walk forward until he reaches the end of one "line" and than he shouldnt just set a angle towards he is supposed to rotate by 90° and than keep on working to the goaltarget
    • another point is, the player is not walking exact, normally he should walk to the origin point of the sqaure means the center

    i hope you can help me out once more

    greets

  • heya, frist of check this out:

    I just had in mind to create a simple Monopoly movement, hopefully you understand what im trying to say

    so here are my questions:

    • is it possible to set the pathfinding to only in one direction? so that the object/player only walks forward means he has to go a full round to reach a certain point?
    • next one, along this path i just mentioned earlier do im able to set something like a "checkpoint" ? since the route the player is moving on is always the same and doesnt change at all ? my intention was to create a function which just looks something like this moveto(nextcheckpoint.x, nextcheckpoint.y)

    that means he checks which one is the nearst checkpoint and moves to it, and the normal movement method should look something like this moveto(Array.At(X),Array.At(Y))

    i mean i could do it with couple if-statements but hopefully there is a easier way with the pathfinding method

  • I emailed you a CAPX back with an explanation.

    Anyone that finds this thread in the future, read up on Containers .

    Thanks for your help again

    you are awesome!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thanks sir

  • The zombies do turn around, if you jump on the last spawned zombie his head

  • Seems to be working ok for me, or am I missing the problems?

    I do get a script error at the beginning, not sure what that's about.

    Here is a video of me testing it.

    No its not, after two zombies spawned you jumped over the one with the hp and he didn't turn around

  • Can you post your CAPX file (File, save as single file) or email it too me at and I can take a look.

    I did

  • unfortunately not :/

    Should i do it all in one for each loop or two?

  • Thanks the attacking part it is working!

    any solution for the other problem ?

  • It would be helpful if we could see your code snippet your are using currently.

    nothing special, thats what i got so far