Questions tagged [scrolling]

Games that include scrolling

Filter by
Sorted by
Tagged with
0 votes
1 answer
60 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,...
Guybrush Threepwood's user avatar
0 votes
2 answers
138 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 ...
Intice's user avatar
  • 31
1 vote
1 answer
66 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 ...
anathrax's user avatar
3 votes
1 answer
147 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/...
Hash's user avatar
  • 83
1 vote
0 answers
1k 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 ...
ireth92's user avatar
  • 81
0 votes
1 answer
332 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 ...
Ivan's user avatar
  • 317
2 votes
1 answer
7k 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 ...
Fustigador's user avatar
1 vote
1 answer
162 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 ...
Unknown's user avatar
  • 11
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 ...
dakath's user avatar
  • 11
1 vote
1 answer
70 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,...
MHK's user avatar
  • 11
0 votes
0 answers
42 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 ...
user124261's user avatar
0 votes
1 answer
410 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 ...
Greencurbwalker's user avatar
0 votes
1 answer
505 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 ...
Carlos's user avatar
  • 101
0 votes
1 answer
404 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)?
Gary Mohan's user avatar
0 votes
1 answer
793 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 : ...
tigrou's user avatar
  • 3,204
2 votes
1 answer
455 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 ...
Rainer M.'s user avatar
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 ...
Zik's user avatar
  • 209
1 vote
1 answer
2k 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. ...
Tarek-Dev's user avatar
1 vote
1 answer
202 views

Visual Glitch When Drawing Rects

I have the following code: ...
MustacheMoses's user avatar
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 ...
user avatar
1 vote
1 answer
675 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 ...
peacetype's user avatar
  • 145
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 ...
PayToPwn's user avatar
  • 123
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 ...
Jacob's user avatar
  • 2,522
0 votes
1 answer
245 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 ...
mkkekkonen's user avatar
1 vote
0 answers
205 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 ...
Evorlor's user avatar
  • 5,783
0 votes
1 answer
797 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 ...
umbe1987's user avatar
  • 101
0 votes
1 answer
308 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 ...
GluePear's user avatar
  • 103
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 ...
Alexander's user avatar
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 ...
NightFury's user avatar
  • 191
1 vote
0 answers
526 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 ...
sma6871's user avatar
  • 111
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 ...
MrPlow's user avatar
  • 337
-1 votes
1 answer
2k 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!
Tahmid RAhman's user avatar
1 vote
2 answers
914 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 ...
JDL's user avatar
  • 111
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 ...
nsfnotthrowingaway's user avatar
0 votes
1 answer
472 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 ...
Kenny Williamson's user avatar
2 votes
2 answers
207 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 ...
WDUK's user avatar
  • 135
2 votes
1 answer
849 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, ...
lash's user avatar
  • 131
3 votes
0 answers
811 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 ...
Christian Finke's user avatar
2 votes
0 answers
493 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 ...
Califer's user avatar
  • 433
2 votes
2 answers
671 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, ...
resfever's user avatar
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 ...
Dustin_00's user avatar
  • 161
2 votes
2 answers
16k 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 ...
thevengefulco's user avatar
0 votes
1 answer
519 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. ...
purpule's user avatar
  • 113
1 vote
1 answer
920 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, ...
Scratchifier's user avatar
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 ...
Liju Thomas's user avatar
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 ...
jincy abraham's user avatar
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 ...
Shersha Fn's user avatar
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), ...
user12's user avatar
  • 143
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 ...
Slampy's user avatar
  • 113
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 ...
James Linden's user avatar