constrain to actor or change attribute memory issue

app-etiteapp-etite Member Posts: 139
edited November -1 in Working with GS (Mac)
Hi guys,

I have a character constantly running on screen. Im using a separate invisible actor above him for collision detection and currently have those two actors constrained to each other so when my character jumps the invisible actor also follows.

Im hearing that constraining is harsh on processing power and I am having troubles with my game stuttering and lagging often.

For my main character, i have, when button is pressed then jump to this height. do you think I should have the invisible actor follow that rule as well so that it matches all the movement of my character with the same rules or will constrain be the better option?

Thanks

follow me
http://twitter.com/appetitegames

https://www.facebook.com/pages/Appetite-Games/203583699676600

Comments

  • app-etiteapp-etite Member Posts: 139
    Anyone??
  • mynameisacemynameisace Hull, UKMember Posts: 2,484
    Constrain will be the better option, definitely, you want the collision area to be following all the time.

    Take a look at other areas in which to cut down, do you have any spawning or other unnecessary constrains?

    Ace
  • jonmulcahyjonmulcahy Member, Sous Chef Posts: 10,408
    Just use constrain. As long as you dint go overboard with constrains you'll be fine
  • app-etiteapp-etite Member Posts: 139
    Ok guys thanks. Yeh i only have one constrain in the whole game so it must be something else.. I do have about 15 actors off screen that scroll across screen when the game goes on.

    Another question tho....!

    I have two characters a dog and a man. When the dog collides with the man I want to change the animation to an animation ive created in which the dog is beating up the man. So I have when actors collide then destroy each of the actors, but if i put play animation or spawn actor then the sizes are all messed up.

    Can a spawned actor be bigger than the actor its spawning from? And how?

    If not how can i achieve this?

    Thanks

    Follow me
    http://twitter.com/appetitegames

    https://www.facebook.com/pages/Appetite-Games/203583699676600
  • app-etiteapp-etite Member Posts: 139
    Any ideas?? Anyone dealt with my last question in a game before??
  • StuartYStuartY Member Posts: 134
    Have you tried testing the dogbeatingupman actor independently of this event to check that the size is ok then? Spawning shouldn't have an effect on size, at least not in my experience. Are the frames of the dog and the man the same dpi as the pictures of the separate characters?
  • app-etiteapp-etite Member Posts: 139
    my bad Stuart.. I had the sizes messed up. thanks
Sign In or Register to comment.