Lost Password?   -   Register

Post Reply 
 
Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
<
[-]
Welcome
You have to register before you can post on our site.

Username:
  

Password:
  




[-]
Social Pages
Like Us on Facebook
Follow Us on Google+
.Phoenix USC on Google+



Follow Us on Twitter


[-]
Twitter

[-]
Top Poster
no avatar

no posts

[-]
Random Quotes
Random Ideas by resoL
Vidiot_X's profile Vidiot_X
Howdy, I've been busy working on the networking code for Phoenix USC and just noticed this post. Wink I will be using a GUI interface for selecting ships as wel . . .

hello!
01-18-2013, 05:14 PM
Post: #1
hello!
its me aussidan@hotmail

I emailed you, I'll be playing for sure!
Find all posts by this user
Quote this message in a reply
01-18-2013, 05:25 PM
Post: #2
RE: hello!
Got it.. I'll hit ya back when I have some time later. Smile

[Image: basic_badge.png] Phoenix USC - Steam group Phoenix USC - Twitter Phoenix USC - Facebook Phoenix USC - IndieDB Phoenix USC
IRC: quakenet.org #phoenixusc
Support Monkey X2 development at Mark Sibly's Patreon page.
Richard Betson
Visit this user's website Find all posts by this user
Quote this message in a reply
01-18-2013, 09:58 PM
Post: #3
RE: hello!
i dont know if you want this or not, but I added a 'shake' effect when the player is hit by incoming fire.

when a certain condition is met, I execute this code

camx = Rnd(-5,5)
camy = Rnd(-5,5)

this executes until the condition is complete which in my case is = to the length that the resulting explosion from the weapon takes to cycle, barely milliseconds the most.

the numbers can be further apart in count for bigger shake or less for smaller shake.

then I modify my setorigin which has always been before the players ship is drawn of course

setorigin(tx+ camx, ty + camy)
where tx = graphicswidth()/2 - playerx
and ty = graphicsheight()/2 - playery

so it keeps the focus on the player ship which is at the centre of the screen, just like subspace, and just like Phoenix.

provides a cool shake effect. I remember the bombs in subspace had a shake effect if they exploded on a wall near you.
Find all posts by this user
Quote this message in a reply
01-18-2013, 10:59 PM (This post was last modified: 01-18-2013 11:00 PM by Vidiot_X.)
Post: #4
RE: hello!
Cool,

In Phoenix I use (will use) a different technique. The camera shake is bound to the physics. Almost all objects in a map are linked to physics. The ship really for the most part sits in the middle of the screen and the rest of the map moves below/around it. It's a little like a person standing still and the earth moves under your feet. So to get camera shake all of the objects in view are moved by some variable which effect the dx/dy (velocities) of that object.

- Rich -

[Image: basic_badge.png] Phoenix USC - Steam group Phoenix USC - Twitter Phoenix USC - Facebook Phoenix USC - IndieDB Phoenix USC
IRC: quakenet.org #phoenixusc
Support Monkey X2 development at Mark Sibly's Patreon page.
Richard Betson
Visit this user's website Find all posts by this user
Quote this message in a reply
01-19-2013, 12:33 PM
Post: #5
RE: hello!
so you are saying the player x , y world coordinates never change? But instead you move the world around the player?
Find all posts by this user
Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)
This forum uses Krzysztof "Supryk" Supryczynski addon..: