Rotate Point

2»

Comments

  • SocksSocks London, UK.Member Posts: 12,822
    edited April 2013
    The example using game.Time works just fine. But you need to fix some of the numbers.
    @RThurman

    Ah! Makes sense now ! The image's resolution was set at 95.961 ppi, so came in at a weird size (height 83.2847) hence the 35.5 in my equation, but yes, if you resize it to 110 pixels tall (it's actually 111) then the number would be nearer 55 like you say (minus a little for the white dot being not quite at the end).
  • SocksSocks London, UK.Member Posts: 12,822
    Too late! He crossed the streams!
    I thought it was just indigestion.
  • RThurmanRThurman Member, Sous Chef, PRO Posts: 2,880
    Too late! He crossed the streams!
    I thought it was just indigestion.

  • RThurmanRThurman Member, Sous Chef, PRO Posts: 2,880
    edited April 2013
    Sorry Bruno that I can't seem to communicate in a way that is helpful to you. I do know what you want and I do know where things went wrong in your file. But I can't seem to communicate to you how to fix it.

    I am not sure how to help much more here. So.. @Socks, I'll back off so that you can explain the relationships between the numbers within the behaviors (in your demo).
  • Yes! Yes! Yes!, Dude how did you get?
  • Ok, @RThurman, i understand your answer. Thanks!
    Now, @Socks, do you explain for me the code? and share??
  • SocksSocks London, UK.Member Posts: 12,822
    edited April 2013
    Now, @Socks, do you explain for me the code? and share??
    I've given you this code two times already !!
    :)

    It is on the first page of this thread, have a look at the demo I made for you.

    Or just use:

    Constrain X to 36.5*sin( game.Time *150)+200
    Constrain Y to 36.5*cos( game.Time *150)+150
    Rotate / clockwise /speed 150
  • Dude, I guess you don't understand my question...
    @brunoocasali@gmail.com



    Do you want your image to do this . . . ?

    image
    dude, is this I want, but not does not work with these images;
  • SocksSocks London, UK.Member Posts: 12,822
    edited April 2013
  • WingmanappsWingmanapps Member Posts: 458
    edited April 2013
    @brunoocasali@gmail.com


    image

    @socks you are being very unclear in your video - could you bend it in NEON aswell
  • SocksSocks London, UK.Member Posts: 12,822
    @Wingmanapps

    :)) + :((
  • RThurmanRThurman Member, Sous Chef, PRO Posts: 2,880
    edited April 2013
    @Socks -- here is a picture of situation.
    1) He changed graphics. So now the actor has a different actor height. But he didn't modify the offset in the expression.
    2) He modified the rotate speed. But he didn't make a corresponding change in the game.time multiplier (um... speed).
    3) He made it run counter-clockwise. But he didn't make a corresponding change in the game.time multiplier. (It needs to be negative to make it counter-clockwise.)

    Perhaps you will have better luck in explaining it!
  • SocksSocks London, UK.Member Posts: 12,822
    edited April 2013
    @Socks -- here is a picture of situation.
    Cheers, that's useful !!
    1) He changed graphics. So now the actor has a different actor height. But he didn't modify the offset in the expression.
    Ah, I see ! Yes, he needs to adjust the offset ! I've not got access to his new image so can't really help out here.
    2) He modified the rotate speed. But he didn't make a corresponding change in the game.time multiplier (um... speed).
    Yep, he's going to need to keep them the same.
    3) He made it run counter-clockwise. But he didn't make a corresponding change in the game.time multiplier. (It needs to be negative to make it counter-clockwise.)
    . . . or just change 'sin' to 'cos' and 'cos' to 'sin'.

    I can see how it might be tempting (to the uninitiated) to think changing rotation speed in rotate would be how to control the speed of the circular path.

    Someone like GShelper should post a simple sin / cos tutorial, these questions come up a fair bit.
    Perhaps you will have better luck in explaining it!
    I'm not so sure, it might be easier to just do it for him, but past efforts have not worked, it would be useful to even get a 'yes I opened that project and it worked' so you get a few clues, but the language barrier is not helping and the more this thread goes on the more I'm not sure what's going on :) but your explanation helped somewhat.
  • SocksSocks London, UK.Member Posts: 12,822
    @brunoocasali@gmail.com

    Can you post your latest / new image ?
  • brunoocasali@gmail.combrunoocasali@gmail.com Member Posts: 20
    edited April 2013
    Yes!
  • SocksSocks London, UK.Member Posts: 12,822
    Nope doesn't work.

    I don't know what an ODT file is, and when I click on the link I just get a loading wheel that never stops.

    A JPEG or a BMP or a PSD or any common image file format would have done the trick, but let's be honest this is all going nowhere slowly ! :))

    I give up ! I'll let someone else have a go. Best of luck.
  • @Socks Sorry Sorry, Sorry I posted the wrong file
    this is o correct
    https://www.box.com/s/1l18a81la5te323dlf4o
Sign In or Register to comment.