Questions tagged [scrolling]
Games that include scrolling
66 questions
0
votes
1
answer
170
views
Scrolling the screen left, right, up and down based on cameras rotation in Unity with C#
I'm making a building game in Unity and C#
I want to be able to scroll the screen in all 4 directions when in building mode.
At the moment, I can rotate the camera and scroll the screen left and right,...
0
votes
2
answers
323
views
Infinite scrolling with mouse
I know we're able to scroll a background image hardcoded or using awsd keys(or arrows) if they're pressed. But what about scrolling it with mouse movement? So I have a piece of panoramic image as a ...
1
vote
1
answer
109
views
Selecting Tiles Correctly With Scroll
I would like to understand the process of selecting the correct tile from a scaled Surface when I have information about the number of tiles on the x and y axes, the length of the Surface, and also ...
3
votes
1
answer
250
views
What was the rationale behind the updating of 'changed' tiles in John Carmack's Adapatie Tile Refresh?
I was recently reading up on Carmack's Adaptive Tile Refresh, of which was written extensively in this thread, to implement in a hobby gamedev project of mine: https://retrocomputing.stackexchange.com/...
2
votes
2
answers
2k
views
How to prevent Unity's ScrollRect from moving as the size of the content changes?
I'm writing a Text-RPG and I have set up a ScrollRect where new paragraphs and choices are added and removed at every turn. This makes the size of the Content change constantly, which I handle with a ...
0
votes
1
answer
477
views
How to create IOS style rubber scrollbar in unity?
I'm looking to create a scroll bare similar to IOS scroll when you load page or something when it lets you pull all the way down but the tension gets higher like it is on spring. How would I approach ...
2
votes
1
answer
8k
views
Unity ScrollView not scrolling with Clamped or Elastic
I have a ScrollView object in my project. It is set to Clamped.
Inside the ViewPort, I have Content and what I actually want to scroll, a TextViewMesh. The Content has a Content Size Fitter, with its ...
1
vote
1
answer
206
views
How to stop scrolling of text in OpenGL
I want to set a time limit for scrolling text in OpenGL & GLUT. How can I stop scrolling at 250? Here is my code. I try with the if condition but it's not working. The scrolling is not stopping in ...
1
vote
1
answer
1k
views
How to make Sprites scroll with the background image that are inside Scroll View?
I'm new in Unity, so I hope you guys can help. I'm developing a 2D-game for Android device, on the scene I have a huge background image inside Scroll View (UI - Scroll View).
Next, I created new ...
1
vote
1
answer
109
views
Why isn't my vertical scrolling functioning properly?
I'm trying to make a simple 2D platformer in XNA, but I'm having trouble with the vertical scrolling.
What I'm trying to accomplish is that whenever the player is above half the height of the screen,...
0
votes
0
answers
52
views
Scrolling backgrounds without tiles
I'm writing a paper on game backgrounds and need to look at how they are implemented in different games, but I'm a bit stuck on scrolling backgrounds.
While it's easy to recognize a scrolling ...
0
votes
1
answer
538
views
Scrolling in 3d Shmup with 32Bit era effects
How can I create a scrolling effect like in Ikaruga, where the background is on Rails and the foreground is fixed with the player in Unity?
https://www.youtube.com/watch?v=H6d0PkEPKSk
Some more ...
0
votes
1
answer
599
views
How can I implement an infinite parallax background like in Slither.io?
I am trying to replicate the endless scrolling of slither.io but, I can't figure out how to implement it. Since the players can move to any direction and the background needs to be available during ...
0
votes
1
answer
470
views
How can I implement a scrolling text ticker?
How can I implement a right-to-left scrolling text ticker in libGDX (like stock tickers)?
0
votes
1
answer
961
views
How to clip what is outside scroll view when using a custom UI element?
I have created a custom UI element (that use CanvasRenderer).
Here is code :
...
2
votes
1
answer
508
views
How to implemement smooth side scrolling in a DOS game?
I'm about to develop (just for fun) a retro DOS game with Turbo C 2.01. Currently I'm wirting directly all the pixel information to 0xA0000000 + [y * 320 + x] which ...
0
votes
1
answer
1k
views
Implementing a scrolling UI in Libgdx
I am using the LibGDX framework. I'm not using Scene2D but I want to implement my own "scrolling UI". This is only what I could think of (see image below):
I will make the 2nd camera look at very far ...
1
vote
1
answer
3k
views
How to find the minimum number in a float array C# Unity
i have a for loop that detects the position of every game object in a list and gets the difference between that object and an object anchored in the center and then stores all values in a float array. ...
1
vote
1
answer
236
views
Visual Glitch When Drawing Rects
I have the following code:
...
4
votes
1
answer
5k
views
Unity not scrolling when mouse not over object
In Unity I am using a scroll view. It works semi-perfectly (had a lot of problems with it, don't like how the UI system works).
The content for my scroll view is a bunch of buttons aligned vertically ...
1
vote
1
answer
751
views
2D Infinite scrolling terrain on two axes
There seems to be a lot of posts about endlessly scrolling backgrounds on one axis, but not much for a 2-axis solution. As Josh Petrie suggested, I'm posting my approach as an answer to see if anyone ...
1
vote
2
answers
4k
views
Programmatically creating a continuous scrolling background in Game Maker: Studio
I have 15 background images for a 2D horizontal scrolling shooter game and I have been wondering how to insert programmatically those background images in the first level room, as I want them to be ...
3
votes
0
answers
3k
views
How to make a fade effect on the Unity's scrollView?
I have a basic ScrollView, with some additional scripts so it snaps to the nearest element (focusing on it).
When I perform the scroll, it looks like this:
What I ...
0
votes
1
answer
289
views
MonoGame - render target drawn below other sprites and in the wrong location
This seems like a simple thing but still doesn't work. So I'm trying to draw a scrollable log window (not scrolling yet) by using a RenderTarget2D.
There are several bugs:
The text should be drawn on ...
1
vote
0
answers
230
views
How can I prevent a GameObject within a ScrollView from moving?
I have a ScrollView. It has children, most of which I want to scroll, but some of which I want to remain still. Think of something along the lines of a spreadsheet where the title rows/columns don't ...
0
votes
1
answer
853
views
pygame scrolling: target moves faster than the camera
I know many questions have already been asked on this same topic, but I can't figure out from those how to solve my problem (possibly due to a different approach to achieve the same goal: scrolling my ...
0
votes
1
answer
349
views
Perlin noise terrain issue when scrolling
I am generating a terrain in Javascript canvas using this js project for the Perlin noise. I have an array of points, and when one point leaves the left-hand-side of the window, it is removed, and a ...
2
votes
2
answers
1k
views
How scroll camera smoothly?
I have such screen: very long world which I draw on stage and I need to scroll it. Now I move my camera in touchDrag() method. But I want to move my camera like I ...
1
vote
2
answers
5k
views
Dynamic items in Scrollable Vertical Layout overlap Unity
I have followed steps from this tutorial site to create dynamic scrollable vertical layout. I am trying to show 10 prefab buttons in a scrollview dynamically. I can see buttons at runtime, but they ...
1
vote
0
answers
560
views
How to recycle unity scroll list of game objects?
In my game, I have a scrollrect which its content have a VerticalLayout component. When I fill that with so many count of GameObjects, the game will fall in problem!
I know that I have to recycle my ...
1
vote
1
answer
1k
views
Scene2d scrollbar not showing even though it exists in uiskin.json/atlas
Using uiskin.json, uiskin.png, uiskin.atlas, default.fnt from libgdx tests I'm trying to make a console window, however the scroll bar is not shown. uiskin atlas ...
-1
votes
1
answer
3k
views
How to make a Infinite Verticle Scrolling Background in Pygame
Is there anyone who knows how to create an infinite verticle scrolling background in pygame?
Your help would be much appreciated, thanks in advance!
1
vote
2
answers
1k
views
Big maps with deep zoom and pan
I have a world map of 14048x7134, the game starts with the zoom completely out and during the operation it zoom in and zoom out and pan in all directions, it can get really near the surface, at almost ...
2
votes
1
answer
1k
views
In Unity, Change which mouse button is used to scroll in ScrollRect
I've created a new ScrollView in Unity. How do I change which mouse button is used to scroll in ScrollRect (through script or in the editor).
By default it's the left mouse button. I'd like to be ...
0
votes
1
answer
526
views
How do you create a camera with target-focus behavior in Java?
After making some progress in my game, I was looking around for camera scrolling methods to use for my TDS game and found one that I thought would work well for it.
This is an example of what sort of ...
2
votes
2
answers
218
views
Camera movement in unity engine
I have a basic camera setup which is angled like so:
x: 30
y: 0
z: 0
Projection: Orthographic
And i attached a C# component to it and made it so the camera ...
2
votes
1
answer
911
views
Infinite scroll with tweens in Phaser
Let's say you have a bunch of tweens running like this:
http://holbrook.no/tests/featherfall.html
Now you want to scroll them horizontally while they fall. By updating camera x, they start moving, ...
3
votes
0
answers
894
views
Drawing a hexgrid on a canvas, yet making it zoom/scrollable?
I'm developing a game in JS / PHP. The game is basically a 2D plane (hexgrid) where each hex represents a location in space.
In total, I'm drawing 25 * 25 hexes on a 1000x1000 canvas. I also draw ...
2
votes
0
answers
514
views
Why are parts of this Unity scrollrect not being bound to the mask?
I'm setting up a system for people to load up extra levels. Since I don't know how many levels are going to be loaded I have a UI prefab that gets added to the main Level Load UI. However, the Text ...
2
votes
2
answers
691
views
Rows of coins in libgdx?
I have my coin image in the assetLoader class, then I import it into gameWorld.
My question is, how can I draw() rows of coins without having to write out 15 different coins?
i.e., coin1, coin2, ...
2
votes
2
answers
8k
views
How to update UI after changing text in a view
After applying a text change to a scrolling view, how do you get the new height of the text, resize other UI elements around the changed text length, etc?
Many have posted this question. Some have ...
2
votes
2
answers
17k
views
Pygame - implementing a scrolling camera
I am currently making a 2d game in Pygame and have run into a roadblock trying to make a scrolling camera (follows the character). I have seen some other answers to similar questions, but they have ...
0
votes
1
answer
560
views
Background Scrolling like Zelda - A Link To The Past with XNA [duplicate]
i am trying to create a background that scrolls like the one in zelda - a link to the past.
in other words: i have a bigger "screen" than the camera covers, so i need to scroll over it, when moving. ...
1
vote
1
answer
1k
views
How to get rid of jerky movement in scrolling? C# / XNA
I'm having a bit of trouble with my code meant to create a scrolling background of random-ish ones and zeros. When moving to the right (or left), it scrolls smoothly for a few seconds, stops/jerks, ...
1
vote
1
answer
6k
views
How to create scrolling input text field using Unity UI
How to create scrolling input textfield using UI
in Unity 4.6.6
problems in my project are
1.Cursor is not masking
2.Scrollbar size is automatically become 0 to 1 size
3.Scrollbar is not working ...
4
votes
1
answer
2k
views
How can I make a scrollable text view?
I am trying to do an appication in monogame windows. I have a long text to be displayed on screen. I tried to render it on screen using spriteBatch.Drawstring, was succesful to an extent. But, the ...
0
votes
3
answers
1k
views
Which is the best method implementing a background scrolling for game in libgdx?
My question is very simple I am new to libgdx development, which is the best approach implementing a background that is to make the background move in y direction
1)My First approach is drawing the ...
1
vote
2
answers
5k
views
Unity - Scroll Rect shows buttons outside of the rectangle
I have this problem. I'm using a scroll rect to display a series of buttons, but I would make sure that as soon as the buttons (with the scroll rect), come out of a certain area (bounded by a panel), ...
1
vote
2
answers
1k
views
ScrollPane scrolling velocity
I'm working with a custom ScrollPane, but I can't find how to change the velocity of scrolling (not on fling action). Can anybody tell me how reduce scrolling velocity on calling setScrollY() or ...
6
votes
2
answers
2k
views
In Unity, how do I handle very short mouse drags as click events?
I am trying to recreate a UI menu that has functionality similar to the iPhone's home screen:
If a user drags anywhere on the menu (including on a button), it should drag the whole page left/right ...