RobertoFreemano's Recent Forum Activity

  • Hi Community,

    Does anyone know how to make a sprite with bullet behavior... arc slightly in motion?

    preferably arc between two points? No physics!

    Thanks,

    Roberto

  • I think I got it....

    system|Set Layer angle |

    Layer 0

    Angle: LayerAngle(0) +(Mouse.X-OriginalWindowWidth*0.5)*0.01

    Thanks Guys - your combined answers help me achieve.

  • That's amazing - thank you guys.

    Do you know how I could apply this to a LayerAngle instead of a sprite?

  • Hi Community,

    I have a sprite in middle of layout (stationary).

    What I'm trying to do is, only rotate sprite>

    if mouse.x > sprite = rotate clockwise

    else

    mouse.x < sprite = anit-clockwise.

    but the tricky bit is calculating speed... so if mouse is closer to sprite, spin slow... if mouse is over sprite = no spin.... else, if further... spin fast.

    I guess I'm comparing 2 variables....

    Hope this makes sense.

    Thanks,

    Roberto

  • AWESOME - Thanks newt

  • Hi Community,

    I have a project in development - were the player sprite remains center of layout. Left/Right keys rotate layout and all on Layer0.

    I also had HUD on Layer1 and the parallax is set to 0,0.

    I was hoping it would freeze the HUD so the player can see score, etc... but it doesn't appear to work. It maybe because the layout is rotating.

    Does anyone know how to achieve this please?

    Thanks,

    Roberto

  • Thankyou plinkie

  • Hi Community,

    I'm trying to create a mobile game.... what I;m trying to do is:

    If player touches screen, a single target sprite will appear.... then multiple bullets aim to that target. until Player releases touch.

    At the moment, I have

    Touch|is in touch | create target (touch.x,touch.y)
    Player|spawn Bullets
    Bullet|Set angle | target
    ------------------
    Touch|on any touch end > target destroy.
    

    Above is rough, but you get the idea. Above works, but it creates multiple targets. I've tried a variable...(e.g. If in touch, set var to 1)

    if var is 1, then crate target once.....

    didn't work as mind brain is frazzled :(

    Thanks again,

    Roberto

  • ok, I created num1 & num2 as global variables

    then set num1 value to Textbox1 & num2 value to Textbox2

    then

    Set Text.text to num1 + num2

    seems to work ;)

  • Apologies for (what should be) easy task... I've tried a few things and keep getting blocked.

    My brain is fried after searching web and testing.

    What am I trying to do?

    create 2 Text-boxes and a Text field (to display result) also with a button.

    These Textboxes are Number only.

    I set instance variables on Textbox1/Textbox2

    I'm trying to display the input value to Text.Text after clicking BUTTON.

    Button Click >

    If Textbox1 = "" Then
    DO NOTHING
    Else
    If Textbox2 = "" Then
    DO NOTHING
    Else
    Set Text.Text = Textbox1.num + Textbox2.num
    

    My Brain is a little mashed in C2 :(

    Thanks,

    Roberto

  • Hi Community,

    I have a game, that calls for intervals... so when player collides with a specific object...

    Player|On Collision with [object] | System|Save game to slot "INT1"

    System|Go to INT1

    So, it jumps to Layout INT to explain further instructions then

    INT1: Keyboard|On Space pressed:

    System Load game from slot "INT1"

    System|Go to GAME

    THE ABOVE WORKS WELL, IT'S WHEN I CREATE IT SECOND TIME ROUND:

    Player|On Collision with [object] | System|Save game to slot "INT2"

    System|Go to INT2

    INT2: Keyboard|On Space pressed:

    System Load game from slot "INT2"

    System|Go to GAME

    I get a popup box with 'localhost: 50000 says.....

    * ME: I have done this before and it's never been an issue!

    Help!!!!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • It's okay, solved it.

RobertoFreemano's avatar

RobertoFreemano

Member since 25 Apr, 2013

Twitter
RobertoFreemano has 1 followers

Trophy Case

  • 11-Year Club
  • Popular Game One of your games has over 1,000 players
  • RTFM Read the fabulous manual
  • Email Verified

Progress

14/44
How to earn trophies