Aleq's Forum Posts

  • You do not have permission to view this post

  • the sword spawing i have solved. maybe not the answer i wanted. how can i add image points in construct classic?

    i hope i get good enough at this, so i can write a helpfull tutorial one day, that actualy shows some pictures of the "coding"

    totally missunderstood you sorry.

  • you should do the beginners tutorials step by step. If you have done it, you would knew that there are "image point"s in C2 so u would solve it with adding extra image points for player sprite and spawn your sword object on thoose points intead of "0"

  • You do not have permission to view this post

  • im glad to help

    • Rockwell, cant found that plug-in either but thanks for the info. I will be looking after it.
    • R0J0hound, you are right it would work if i create a function that starts a session to set angle every tick of the game when player clicks, and when clicks again, reset it and start another one. I would do it like this if i were writing this in spagetti. What i am looking was shortening the time to develop games when i buy this product. C'mon it is a very basic animation for a game to turn an object. I thought i didnt knew how to do it with construct 2.

    Now i solved the issue by turret behaviour. (attached)

    When player clicks i create an invisible target for the turret. Turret makes the object slowly aim to the target. But target dissappears before turret fully aims. Like 30 degrees.

    Why i am so obsessed about not aiming fully but some degrees is, im trying to make user constantly click or tab the game. It gives harder control over object and force player to make movement strategies. In full version player tries to catch something within a time withouth hitting tings. Also clicking that much needs full consantration with a suspicious kind of addiction to the game (doesn't works for everyone see flappy bird).

    Thank you very much for your attention everyone

  • you dont actually need an array object. U can do, would be better but u may not.

    if your game has 7 keys forexample u can make this with 7 global variables too.

    You will going to have preset of keycodes on this global variables already. Then you will going to use "keyboard" objects "on any key pressed" event. add 7 sub "if" events to that event by using "Compare two values" event. On each, u will going to compare one of your global variable with "Keyboard.LastKeyCode". if equal, then u will going to do actions for that key.

    However this will going to be a long term control method if your game has like 30 keys. I suggest you to make your players to be able to choose "premade" key combinations. like using "awsd" instead of arrow keys ect. in such stuations.

  • Hello,

    My name is Serdar.

    Actually im a front end developer. But im also a game addict. Im interested on biology and i see codes everywhere in nature. I think the whole world like a game. Like all cats has the same behaviours and AI but they act different on some stuations within some randomness.

    I believe mobile technology bring a new air to game programming and 2D games became avaible again (yay!)

  • any ideas about this?

  • when I want to test it in my computer at the first I cant hear the sound when I go to another tab and come back to the game tab main music is playing

    or when I test it in google drive it doesnt have any problem and it plays

    in kongregate after the music is downloaded i have to go to another tab and come back then it plays (in firefox)

    but in chrome it doesnt play i can hear the sounds but i cant hear the music

    have you tried "audio" objects "preload" action "on start of layout" to preload your sounds and musics?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Yes something like that.

    However as i can see from your expression, that tween behavior will not help me. Couse it is always turns the objects in same rotation. and exactly to the mouse click position. So when i click to a place that will force it to turn to opposite direction, object spins around.

    • What i am trying to do is moving the object towards its forward angle.
    • this angle will be determined by player with mouse clikcs.
    • object will turn towards to the mouse click location like 30 degrees. or lesser if its less then 30 degrees.

    why 30 degrees? couse i want the controls a bit harder.

    my project works perfectly. however i need my object to turn slowly, not instant

    Thank you for your help.

  • i cannot find an action which will replace the one below according to your attached behavior:

    "object - rotate 30 degrees towards (Mouse.X, Mouse.Y)"

    edit: im not permitted to post links yet sample is attached

  • Rotate behavior makes an object cosntandly rotate around itself. if u set its speed to 0 it stops turning around.

    Even onbject has a rotate speed you cannot rotate it towards a position within a time. action makes it instandly rotate towards position. and it continues spinning around itself

  • Hello,

    i have an object constantly moves forward during game. Player decides where it will go by clikcing/tabbing screen.

    each time player tabs a position i use:

    object - rotate 30 degrees towards (Mouse.X, Mouse.Y)

    but this rotation is instant. i want a smooth movement like rotating the object within a time, instead of rotating instandly.

    How can i make this?

  • still giving 404 error