Aleq's Recent Forum Activity

  • 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?

  • 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

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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

Aleq's avatar

Aleq

Member since 20 Feb, 2014

None one is following Aleq yet!

Connect with Aleq

Trophy Case

  • 10-Year Club
  • Email Verified

Progress

11/44
How to earn trophies