Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Question on Freeze game
Started by maximo97 Aug 10 2018 04:44 PM

5 replies to this topic
freeze
[TOPIC CONTROLS]
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

maximo97

[GLOBAL: userInfoPane.html]
maximo97
  • Contributor

  • 213 posts
  • Corona SDK

Hello everyone!

 

My game has a physical box that moves in a circular way.

 

To move this box, I tried two approaches:

1) According to the position of the touch event, change ".rotation" of the box (this of course problems because          physics must be modified only with physical elements)

2) Use a touch joint on the box fixed with a pivot joint in the middle (this works well enough but sometimes the          picture makes unexpected shots due to the different position of the joint and in any case it is not exactly what        you had)

 

I then came across Freeze. It moves exactly as I would like, and I assume that their box is also a physical  body

 

So I was wondering if anyone has any other suggestions to replicate this mechanism of the game



[TOPIC: post.html]
#2

roaminggamer

[GLOBAL: userInfoPane.html]
roaminggamer
  • Corona Geek

  • 7,125 posts
  • Corona SDK

Link the game you're talking about.  That will  help us understand. i.e. Then we can see it.

 

Do you mean this game? 

 



[TOPIC: post.html]
#3

roaminggamer

[GLOBAL: userInfoPane.html]
roaminggamer
  • Corona Geek

  • 7,125 posts
  • Corona SDK

My guess.  The 'box' as you call it is actually a set of discrete physics bodies.

 

Also guessing, but they are all in a group whose <0,0> is set to the center of the screen and the group is being rotated.



[TOPIC: post.html]
#4

roaminggamer

[GLOBAL: userInfoPane.html]
roaminggamer
  • Corona Geek

  • 7,125 posts
  • Corona SDK

I just tried this and the guess was wrong. Trying something else.



[TOPIC: post.html]
#5

roaminggamer

[GLOBAL: userInfoPane.html]
roaminggamer
  • Corona Geek

  • 7,125 posts
  • Corona SDK

This may or may not help: https://github.com/roaminggamer/RG_FreeStuff/raw/master/AskEd/2018/08/freezeGuess.zip

 



[TOPIC: post.html]
#6

maximo97

[GLOBAL: userInfoPane.html]
maximo97
  • Contributor

  • 213 posts
  • Corona SDK

Hi.

 

I did not put the video of the game because freezer is a game present in the coron stories and repeatedly mentioned.

I realize now that you're right and it was better to insert a video. My fault.

 

However you have hit the point. I downloaded the test project and it's exactly what I'm doing (point 2 quoted above).

The main problem of this mechanism is when the user touch from one corner to its opposite through the center (a diagonal)(attached)

 

The second thing I would like to solve is the fact that the ball sometimes comes out despite ".isBulltet" is true

 

 

 

Attached Files




[topic_controls]
[/topic_controls]

Also tagged with one or more of these keywords: freeze